2

I need a library to generate some charts in my page. I found the phpChart, but I do not know how to install it.

My question is: How to install phpChart in Laravel via composer.

1 Answer 1

5

Unfortunately if there are no packages on packagist, you cannot install it via Composer.

But you can still install it on Laravel:

1) Download and unzip it somewhere in app/, you can create an app/libraries/phpChart and unzip it there.

2) Edit your composer.json and add your folder to it:

"autoload": {
    "classmap": [
        ...
        "app/libraries"
    ]
},

3) Run composer dump-autoload so Composer create a new map for your library classes.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.