PHP clean code architecture using design principles
Shell 1.17%PHP 80.26%HTML 18.57%
php-clean-code-api's Introduction
PHP clean code architecture example
Requirements
Create recipies API without using any framework but can use packages
Use clean code concepts while building architecture
Document API's very well
Basic Details & instructions
Since I had some other serivce running on 80 port, I've made chage in docker-compose.yml to run nginx on 82 port, so the application will be accessible on http://localhost:82 url. You can find it on develop branch.
Composer Install - If you have composer installed on your local you can directly do composer install else can use my docker image script cd web && bash composer_update.sh.
DB Migrations - Short command bash migrate.sh or ssh into php container & run phpmig migrate command
Unit Test - To Run Unit tests use composer test or use bash phpunit.sh
API DOC - You can access swagger API doc on http://localhost:82/doc/index.html URL