Support the ongoing development of Laravel.io →
Configuration Packages
Last updated 2 years ago.
0

"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!

Last updated 2 years ago.
0

Jpgraph library is in Composer... Install it with composer and it works, anyway, thanks for reply mnshankar!

composer require jpgraph/jpgraph:dev-master
Last updated 2 years ago.
0

I'm still struggling to get JpGraph working in Laravel 5. What are the complete steps to reference all the classes?

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.