I am trying to understand how psr-4 works using composer. These are the contents of my composer.json file The Folder Structure is given below (please note I am using windows 10, so directory name casing should not matter I think) The folder where I have created ‘vendor’ folder is inside D:tempcomposer_test Contents of test.php Contents of Tire.php But when I
Tag: psr-4
Can we add subdirectory manually after the psr-4 composer namespace path?
I have different versions of files which are stored in separate subfolders inside a main folder. I intend to use subfolder based on a dynamically determined value of $ver. Can I create a psr-4 composer namespace for the main folder and then add to it the $ver for subfolders as needed. I tried following but its showing errors. File Structure: