Zend Framework Composer Packages

前端 未结 3 2148
轮回少年
轮回少年 2021-02-13 19:33

I would like to add dependency to zendframework/zend-db package, so I added it to my composer.json:

\"repositories\": [
    {
        \"type\": \"co         


        
3条回答
  •  野趣味
    野趣味 (楼主)
    2021-02-13 19:50

    Here's the composer.json from zend-db in the zend github. According to the file, zend-db does not have any dependencies.

    This can be due to the fact that you're trying to download a package from dev-master and there's a missmatch in the composer.json of the dev-master.

    I would suggest you to change the required version to something like 2.0.* and try again.


    Also, Although Zend Framework is loosely coupled, in the older versions of the framework the dependencies were not explicit.

    For instance, with a quick sweep over the source code of zend_db from ZEND 1.9, I found that it depends, at least, on the following packages:

    • Controller
    • Config
    • Filter
    • Json
    • Loader (for autoloading, I reckon this might not be necessary due to composer autoloader)
    • Uri
    • View
    • Wildfire

    These packages might have other dependencies, hence the download size. Regardless, as King explained, Zend Framework 2.0 is different from version 1.9 and maybe this is not applicable to 2.0

提交回复
热议问题