src
├── DataFixtures # App fixtures for testing
├── Entity # Domain logic layer
├── Repository # Repository layer
├── Service # Service layer
└── UI # UI layer (console, web, api,...)
├── Console
└── Web
Dependency layer rule: UI<-{UseCase}<-Service<-Repository<-{External clients (db, api, OS)}
- Clone project
git clone git@github.com:akmaks/test-text-magic.git && cd test-text-magic - Init local environment
make setup - Init githook for checking code before commit (local php is required)
make add-check-githook - Start test
make run
Run unit tests make test
Start make to get help info about available commands