Created
August 30, 2017 11:13
-
-
Save TakesTheBiscuit/66ee94fd325630bd123a891b791c5c66 to your computer and use it in GitHub Desktop.
Autoload metapack php shipping library wrapper client using composer
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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