使用cakephp3 wamp64安装phplot

时间:2018-07-09 06:22:45

标签: php cakephp

我在cakephp3应用程序的Windows(wamp64)上安装phplot时遇到一些问题。说明指示

"On Windows systems, you can simply download the release ZIP file, expand
   it using Windows Explorer, and copy the needed script file(s) out of 
 the contained phplot-* folder into place." 

q1)wamp64上的“ into place mean”到底在哪里?

q2)在cakephp3项目中访问phplot(我找不到说明)?

http://phplot.sourceforge.net/phplotdocs/install-install.html

1 个答案:

答案 0 :(得分:1)

您可以使用composer。在您的项目目录中执行此命令以进行安装。

composer require davefx/phplot

或将此行添加到需要部分的项目composer.json文件中。

"davefx/phplot": "*"

和execute composer update命令。

或者您也可以在供应商目录中解压缩phplot zip文件,然后使用以下命令将其包含在控制器中

 require_once(ROOT . 'vendor' . DS  . 'phplot-6.2.0' . DS . 'phplot.php');