简体   繁体   中英

how to install 'amnah / yii2' in Yii 2.0?

How can i do this? Despite my attempts I couldn't. I don't understand amnah's document. On the document; " Install Yii 2 using your preferred method Install package via composer "amnah/yii2-user": "~2.0" Update config file config/web.php and config/db.php "

But I could not use to composer. Can you tell me, how can I do manual install?

Solved:

Well, I added "amnah/yii2-user": "dev-master" in "require" on composer.json file. Then "composer update" and work.

If you don't want to use composer , you can just download the library you need and then place it under the vendor/ directory, in your project's root.

For example, if you want to use phpspec/php-diff in your project, you can download the project yourself (from github ) and then put it into vendor/ . It should look like this:

|--myproject
   |--commands
   |--config
   |--controllers
   ...
   |--vendor
      |--phpspec
         |--php-diff

This is basically what composer does when you install something via composer.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM