php - Codeigniter - 4 how to access/load packages from vendor folder on a shared hosting server

one text

Solution:

if you installed library with composer you need move all vendor folder to host but if installed manually you need call namesapce of library

public $psr4 = [
        APP_NAMESPACE => APPPATH, // For custom app namespace
        'Config'      => APPPATH . 'Config',
        'PHPMailer' => ROOTPATH .  
'My'=>ROOTPATH .  'thirdParty/My/src'
        ];

Source