CodeIgniter Forums
Composer vendor folder instead system - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30)
+--- Thread: Composer vendor folder instead system (/showthread.php?tid=86906)



Composer vendor folder instead system - pippuccio76 - 02-25-2023

Hi , i have a project with system folder , when i try to install phpspreadsheet from GitHub It create a vendor folder , but ci work with system folder, i try to change system with vendor on config->Path but have error because CI search system..


RE: Composer vendor folder instead system - luckmoshy - 02-25-2023

No CI also works  with composer and creates vendor folder in order to achieve this do
Code:
composer create-project codeigniter4/appstarter your-project

otherwise find App/autoload.php

and register your repo
PHP Code:
public $psr4 = [
        APP_NAMESPACE => APPPATH// For custom app namespace
        'Config'      => APPPATH 'Config',
        'App\Thirdparty =>ROOTPATH . 'src/your/something.php',//full qualify namespace
    ]; 



RE: Composer vendor folder instead system - captain-sensible - 02-25-2023

for me , i think the lesson i learned is to start from the very beginning to use composer to install Ci4 , then everything else remains ship shape and tidy , when you install further stuff.