Yii3 - How to start

Comparing #84 with #85

Revision #85 was created by rackycz rackycz on Nov 13, 2026, 9:56:21 AM.

insights

Content

[...]
You need to add special "cycle" dependencies to use the annotations. See composer.json in the deprecated yii3 demo:
- https://github.com/yiisoft/demo/blob/master/blog/composer.json
- https://cycle-orm.dev/docs/annotated-entity/current/en

## Real life insights
 
 
### DB vs PHP file
 
 
You may soon find out that storing translations and RBAC definitions (user roles and permissions) in DB is a pain in the ... .
 
I recommend storing them in PHP files. In case of RBAC the only thing you want to have in DB is the assignment of users to roles so they can be changed via WEB UI.
 

## ===== Yii3 - How to start ======

Yii3 offers more basic applications: Web, Console, API. I will be using the WEB application:
- https://github.com/yiisoft/app
- Other apps are linked on the page
[...]