- https://github.com/shin1x1/independent-core-layer-laravel
- https://blog.shin1x1.com/entry/independent-core-layer-pattern
via qossmic/deptrac
Deptrac is a static code analysis tool that helps to enforce rules for dependencies between software layers in your PHP projects.
Run tests
$ php deptrac.phar analyze depfile.yaml
$ php deptrac.phar analyze depfile-core.yaml
$ php deptrac.phar analyze depfile-service.yaml
or
$ composer deptrac
via phpat/phpat
PHP Architecture Tester is a static analysis tool to verify architectural requirements.
It provides a natural language abstraction to define your own architectural rules and test them against your software. You can also integrate phpat easily into your toolchain.
Run tests
$ ./vendor/bin/phpat phpat-core.yaml
$ ./vendor/bin/phpat phpat-serivce.yaml
or
$ composer phpat