Code is a mess because of two reasons:
- I don't have any experience with Yii2;
- Yii2 is a messy and limiting framework. It is breaking SOLID whenever it can. To make clearer architecture I must ditch most of the capabilities of Yii2 and rewrite or write completely new components and libraries, maybe install 3rd party libraries and make them work in Yii2. Each approach would take a ton of time, which I don't have at the moment. So I finished the task using Yii2 structure as it is documented.
- Create simple rest-api which will manage personal phonebook for each user
- User should be able to create, change, remove contact information and add phones to contacts
- Add registration and authorization system
Postman collection for api is in file ContactsTestTask.postman_collection
- Pull docker-setup repository
- Move to folder and run
sh build.sh