Composer and Yii

前端 未结 2 1829
名媛妹妹
名媛妹妹 2021-02-09 22:35

I\'m using composer as my dependency manager and since I need to develop with Yii Framework I added it to my composer.json file, so it looks like this:

//other p         


        
2条回答
  •  青春惊慌失措
    2021-02-09 23:25

    I had the exact same issue, so I ended up repackaging Yii so that it only contains the framework folder. It reduces the package by ~10Mb. Here's a link to the github repo.

    Just add the following to your composer.json file.

    {
        "require": {
            "square1-io/yii-framework": "1.1.14"
        }
    }
    

    Then run:

    $ composer install
    

    I've thrown up a blog post about it: http://blog.square1.io/post/60830077608/yii-1-1-14-via-composer

提交回复
热议问题