Welcome Guest, Not a member yet? Register   Sign In
How to use Composer installed libs?
#2

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
CMS CI4 A CMS system, runs out of the box written on top of CI4
Arch Book  CodeIgniter4 on Apache(pages 92-114) 
Reply


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



Theme © iAndrew 2016 - Forum software by © MyBB