Yii 2.0 - Getting Started

Install Composer via Composer on Mac OS X curl -sS https://getcomposer.org/installer | php sudo mv composer.phar /usr/local/bin/composer Install Yii composer create-project --prefer-dist yiisoft/yii2-app-basic basic Installing Assets Add the following lines to /basic/composer.json "replace": { "bower-asset/jquery": ">=1.11.0", "bower-asset/inputmask": ">=3.2.0", "bower-asset/punycode": ">=1.3.0", "bower-asset/yii2-pjax": ">=2.0.0" }, Verify the Installation Go into the basic/ php yii serve User browser to access: http://localhost:8080/ CHeck if the minimum requirements are met by running cd basic php requirements.php ...

May 26, 2020 · 2 min · 408 words · Ken Cho