[Yii Framework] is a modern framework designed to be a solid foundation for your PHP application.
It's intended to show and test all Yii features.
- Clone this repository.
- Configure
config/params.php. You can skip this step. - Run
composer installin your directory root folder. - Run
./vendor/bin/yii serveor start your web-server setting uppublicdirectory as webroot. - Go to index page. Cycle ORM will create tables, indexes and relations automatically in the configured DB.
If you want to disable this behavior then comment out line with
Generator\SyncTables::classin theconfig/params.php. In this case you should create migrations to sync changes of entities with DB. - Run
./vendor/bin/yii fixture/add 20to create some random data.
Console works out of the box and could be executed with ./vendor/bin/yii.
Some commands:
user/create <login> <password>
fixture/add [count]In order to register your own commands, add them to console/params.php, console → commands section.
In order to run web application either built-in web server could be used by running ./vendor/bin/yii serve or a
real web server could be pointed to /public/index.php.
More routes could be added by editing src/Factory/AppRouterFactory.

