Skip to content

vanderson139/php-clean-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP clean code architecture api

Instructions

  • Composer Install - If you have composer installed on your local you can directly do composer install.
  • Built-in Server - Before run the tests, make sure you have the application running on port 8000. Use php -S localhost:8000 -t public/.
  • Unit Test - To Run Unit tests use composer test or use vendor/bin/phpunit

Clean code architecture

  • Bellow are few concepts I've focused & followed while building this architecture
    • SOLID Principles
    • The Onion Architecture
    • Factory Pattern & Static Factories
    • Adapter Pattern
    • Repository Pattern
  • The main benefit of having this kind of architecture is to keep your core business logic testable

Resources/plugins used

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages