/independent-core-layer-architecture-test

Architecture Test Example for Independent core layer pattern

Primary LanguagePHPMIT LicenseMIT

Architecture Test Example for Independent core layer pattern

What is Independent core layer pattern

Architecture Tests

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

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