Skip to content

Instantly share code, notes, and snippets.

@bhawnam193
Created September 12, 2019 18:54
Show Gist options
  • Save bhawnam193/f716b2c703ad6b3d9ee6de59a5e5a8a0 to your computer and use it in GitHub Desktop.
Save bhawnam193/f716b2c703ad6b3d9ee6de59a5e5a8a0 to your computer and use it in GitHub Desktop.
What is composer and yii 2 installation
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