Easy test for Yii2 backend developer.
Tasks:
-
Apply migration and create Model for table (extend
ActiveRecord
) -
Fetch rows from demo table the best way you know (min memory usage, min execution time) using
ActiveRecord
-
Decrypt fields
name
andphone
usingyii\base\Security
decryptByKey()
. Key stored inparams.php
. Display decrypted data as a table in site/index. -
Create REST service for demo table. (Don't forget about security)
-
Create tests for Rest controller.