安装zf-charts-master Zend Framework 3

时间:2019-01-30 13:25:38

标签: zend-framework composer-php zend-framework3

我无法安装zf-charts-master。

我收到此错误:

  

找不到“ Phpro \ Chart \ ChartJs \ Doughnut \ DoughnutOptions”类

我做了什么: 我从git下载了软件包并将其解压缩到 C:\ wamp64 \ www \ mysite \ vendor \ zf-charts-master

然后我编辑了composer.json并添加:

    CREATE TABLE Table_metrics 
        SELECT TABLE_NAME, TABLE_ROWS FROM INFORMATION_SCHEMA.TABLES 
        WHERE TABLE_SCHEMA = 'Sensors';

在我的控制器中,我添加了这些使用声明,因为Eclipse提出了建议:

"require" : {
        "php" : "^5.6 || ^7.0",
        "zendframework/zend-component-installer" : "^1.0 || ^0.7 || ^1.0.0-dev@dev",
        "zendframework/zend-mvc" : "^3.0.1",
        "zfcampus/zf-development-mode" : "^3.0",
        "zendframework/zend-cache" : "^2.7.1",
        "zendframework/zend-db" : "^2.9",
        "zendframework/zend-mvc-form" : "^1.0",
        "zendframework/zend-json" : "^3.0",
        "zendframework/zend-log" : "^2.9",
        "zendframework/zend-mvc-console" : "^1.1.10",
        "zendframework/zend-mvc-i18n" : "^1.0",
        "zendframework/zend-mvc-plugins" : "^1.0.1",
        "zendframework/zend-psr7bridge" : "^0.2.2",
        "zendframework/zend-navigation" : "^2.9",
        "phpoffice/phpspreadsheet" : "dev-develop",
        "zendframework/zend-authentication" : "^2.5",
        "zendframework/zend-mvc-plugin-identity" : "^1.0",
        "zendframework/zend-session" : "^2.8",
        "zendframework/zend-math" : "^3.0",
        "zendframework/zend-crypt" : "^3.3",
        "doctrine/doctrine-orm-module" : "^1.1",
        "zendframework/zend-inputfilter" : "^2.8",
        "zendframework/zend-validator" : "^2.10",
        "zendframework/zend-form" : "^2.12",
        "zendframework/zend-mail" : "^2.10",
        "zendframework/zend-filter" : "^2.8",
        "phpro/zf-charts": "~0.1"
    },

还有一个文件夹结构的屏幕快照(位于供应商中): enter image description here

所以我认为Eclipse找到了这些类,但Zend却没有。我的问题: 缺少什么,我必须将其添加到其他地方吗?任何帮助表示赞赏!

0 个答案:

没有答案