Issue Setting Up Fresh Yii2-App-Basic

When I run create-project, it installs beta branch for yii2, yii2-bootstrap & yii2-gii.

But yii2-debug is set to master.

Which is causing an issue.


Calling unknown method: yii\web\UrlManager::addRules()

Below is the script output.





$ composer create-project --prefer-dist --stability=dev yiisoft/yii2-app-basic ./html/


Installing yiisoft/yii2-app-basic (dev-master 1484e58b1bf8f43217a5d22c2a469773934975c5)


Now trying to download from source


  - Installing yiisoft/yii2-app-basic (dev-master master)

    Cloning master


Created project in ./html/

Loading composer repositories with package information

Installing dependencies (including require-dev)

  - Installing ezyang/htmlpurifier (v4.6.0)

    Loading from cache


  - Installing swiftmailer/swiftmailer (dev-master 6867589)

    Loading from cache


  - Installing cebe/markdown (0.9.x-dev 6a3c373)

    Loading from cache


  - Installing yiisoft/yii2-composer (dev-master f205416)

    Loading from cache


  - Installing yiisoft/jquery (2.1.1)

    Loading from cache


  - Installing yiisoft/jquery-pjax (dev-master 98caa41)

    Loading from cache


  - Installing yiisoft/yii2 ([b]2.0.0-beta[/b])

    Loading from cache


  - Installing phpspec/php-diff (dev-master 30e103d)

    Loading from cache


  - Installing yiisoft/yii2-swiftmailer (dev-master 5f50b47)

    Loading from cache


  - Installing yiisoft/yii2-codeception (dev-master 9b2a01f)

    Loading from cache


  - Installing twbs/bootstrap (v3.0.3)

    Loading from cache


  - Installing yiisoft/yii2-bootstrap (2.0.0-beta)

    Loading from cache


  - Installing yiisoft/yii2-debug (dev-master d653a52)

    Loading from cache


  - Installing yiisoft/yii2-gii (2.0.0-beta)

    Loading from cache


  - Installing fzaninotto/faker (dev-master 7f6c460)

    Loading from cache


  - Installing yiisoft/yii2-faker (dev-master 4b4d431)

    Loading from cache


Writing lock file

Generating autoload files

Do you want to remove the existing VCS (.git, .svn..) history? [Y,n]? Y

chmod('runtime', 0777)...done.

chmod('web/assets', 0777)...done.

chmod('yii', 0755)...done.




Is anyone else facing this issue?

Never mind. The instructions are updated. :)

I needed to execute following before create-project:


composer global require "fxp/composer-asset-plugin:1.0.0-beta1"

I was facing this issue.

That helped me.

But what do you mean by “instructions”? Composer dependencies list? (I’m new to the composer world)

Here is that doc.

under ‘Installing via Composer’ there are instructions how to install.

Installation guide link

I think this is not updated to main installation guide. That’s why its a little confusing!

But I think, another beta is in progress…

It will be called RC, not beta ;)

It’s working follow this way

composer global require "fxp/composer-asset-plugin:~1.0.0"

after successful run this

composer create-project --prefer-dist --stability=dev yiisoft/yii2-app-basic basic

and enjoy yii2 :)