Hello everyone!
I was developing a laravel 4.2 website with custom php classes, and now I want to migrate to laravel 5 to continue developing this "library".
The way I did it in laravel 4.2 was by following this helpful StackOverflow answer : http://stackoverflow.com/a/17091089
So basically I created a "library" folder in my app folder, with a sub-folder named after my WIP library (let's call it CustomPhpLib). Then I added ""app/library" to my composer.json file, in the "autoload>classmap" array and I could just call "new CustomPhpLib" whenever I wanted (in a view or in a controller), and it worked.
However I'm not sure how to do that in laravel 5. Where should I put the "library" folder? How should I load it automatically?
I should point out that my library is not namespaced yet. I understand the basic principles of namespacing, PSR and all that, but I never used that kind of things before. I plan on making all those changes later, but I would like to make it work with L5 just like in L4.2 before.
I tried a very basic (and probably very wrong) approch by creating public/CustomPhpLib and adding "public/CustomPhpLib" to the autoload>classmap array, but it doesn't work, I get a 500 error whenever I try to use the class.
Any help on understanding how this works would be really appreciated.