Custom Library Path Issue


I am migrating from Zf2 to Laminas. Finding an issue with locating custom library class

message:[Uncaught Error: Class ’ ‘Libraries\MIB\Functions’ ’ not found in myapplication/module/Application/src/Module.php:398

The file located in vendor folder /vendor/libraries/MIB

namespace Libraries\MIB;
class Functions{}

and importing in Module.php

use Libraries\MIB;

phpstorm is showing the path reference and picking exact class


I understand from your post that you changed the vendor folder and put your libraries there. But this is wrong: never change the vendor folder or the content of this folder.

You have different options, for example:

Check the documentation of Composer and you will find the best option for your application.

Thanks for the input. I will try