phpChart在Laravel [英] phpChart in Laravel

查看:188
本文介绍了phpChart在Laravel的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要一个库来在我的页面中生成一些图表。我找到了 phpChart ,但我不知道如何安装它。



我的问题是:如何通过composer在Laravel中安装phpChart。

解决方案



但您仍然可以在Laravel上安装:



1)下载并将其解压到 app / 中的某个位置,您可以创建一个 app / libraries / phpChart 并将其解压缩。 p>

2)编辑composer.json并将文件夹添加到其中:

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

3)运行 composer dump-autoload ,以便Composer为您的库创建一个新地图类。


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.

解决方案

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.

这篇关于phpChart在Laravel的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆