Skip to content

Instantly share code, notes, and snippets.

@darkmavis1980
Created June 7, 2018 12:36
Show Gist options
  • Save darkmavis1980/4b3833bade91c51b051e67279080840b to your computer and use it in GitHub Desktop.
Save darkmavis1980/4b3833bade91c51b051e67279080840b to your computer and use it in GitHub Desktop.
Load packages with namespaces installed with Composer
<?php
require 'vendor/autoload.php';
use Namespace\For\Your\Package\Classname;
$a = new Classname();
$b = $a->someMethod();
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment