Skip to content

Instantly share code, notes, and snippets.

@TakesTheBiscuit
Created August 30, 2017 11:13
Show Gist options
  • Save TakesTheBiscuit/66ee94fd325630bd123a891b791c5c66 to your computer and use it in GitHub Desktop.
Save TakesTheBiscuit/66ee94fd325630bd123a891b791c5c66 to your computer and use it in GitHub Desktop.
Autoload metapack php shipping library wrapper client using composer
{
"autoload": {
"classmap": [
"database"
],
"psr-4": {
"App\\": "app/"
},
"files": ["app/Libraries/metapack_client_v5.php"]
},
}
/*
by adding the `files` array and then referencing the library all of it's classes will be available for all requests as if it had been required() or included() and all of the classes and methods will appear inside the root namespace, for example:
$product = new \Product;
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment