"Classmap" is only for autoloading classes (that have the same name as the file).
In this case, please use the files key like so (composer.json):
"files":[
"app/libraries/jpgraph/src/jpgraph.php",
"app/libraries/jpgraph/src/jpgraph_line.php"
]
Also note that you might encounter gd related errors along the way... so please check the laravel logs and fix as required (I encountered an error with gd and this page helped: http://ubuntuincident.wordpress.com/2011/01/28/drawing-graphs-in-php-with-jpgraph/)
In the end, the library did work as expected.
Good luck!
Jpgraph library is in Composer... Install it with composer and it works, anyway, thanks for reply mnshankar!
composer require jpgraph/jpgraph:dev-master
I'm still struggling to get JpGraph working in Laravel 5. What are the complete steps to reference all the classes?
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community