Created
September 12, 2019 18:54
-
-
Save bhawnam193/f716b2c703ad6b3d9ee6de59a5e5a8a0 to your computer and use it in GitHub Desktop.
What is composer and yii 2 installation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://getcomposer.org/download/ | |
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" | |
Composer is a tool for dependency management in PHP. It allows you to declare the libraries your project depends on and it will manage (install/update) them for you. | |
Suppose: | |
You have a project that depends on a number of libraries. | |
Some of those libraries depend on other libraries. | |
Composer: | |
Enables you to declare the libraries you depend on. | |
Finds out which versions of which packages can and need to be installed, and installs them (meaning it downloads them into your project). | |
composer create-project --prefer-dist yiisoft/yii2-app-basic basic | |
/Web/index.php | |
https://www.yiiframework.com/doc/guide/2.0/en/start-workflow |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment