How to use Composer installed libs? |
if you installed your codeigniter web with composer, then you should have a composer.json file at your web root and that if from the context of being at your web route from a shell window and you used :
Code: composer require jlevers/selling-partner-api then 2 things should have happened, you should have seen that your composer.json file has been updated snd now contains and entry for jlevers . Also that if you look in your vendor directory you will also see a directory called something like jlevers. In the process autoload would have been updated so in a controller , you don't need that line: Code: require_once __DIR__ . '/vendor/autoload.php'; normally with a class it would be instantiation $handle = new Class (); looking breifly at it, it says you need account and docs are : https://github.com/jlevers/selling-partner-api |
Messages In This Thread |
How to use Composer installed libs? - by simoon - 12-01-2021, 06:21 AM
RE: How to use Composer installed libs? - by captain-sensible - 12-01-2021, 08:52 AM
RE: How to use Composer installed libs? - by simoon - 12-02-2021, 06:39 AM
RE: How to use Composer installed libs? - by captain-sensible - 12-02-2021, 12:08 PM
|