PHPackages                             backendtea/architect - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Testing &amp; Quality](/categories/testing)
4. /
5. backendtea/architect

ActiveLibrary[Testing &amp; Quality](/categories/testing)

backendtea/architect
====================

Architectural checks for your codebase

0.0.1(1y ago)27[1 issues](https://github.com/BackEndTea/architect/issues)MITPHPPHP ^8.1

Since Aug 17Pushed 1y ago2 watchersCompare

[ Source](https://github.com/BackEndTea/architect)[ Packagist](https://packagist.org/packages/backendtea/architect)[ RSS](/packages/backendtea-architect/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (11)Versions (2)Used By (0)

Architect
=========

[](#architect)

Architect helps enforce architectural decisions in your PHP projects.

For example, you can enforce that the `src/` folder does not use the `test/` folder, or you can enforce a layered architecture, where you split up your code in a `Domain`, `Application`, and `Infrastructure` layer, where layers can only have dependencies inward.

Architect is currently very much in beta, so any provided feedback is really helpful.

Installation
------------

[](#installation)

```
composer require backendtea/architect --dev
```

Usage
-----

[](#usage)

### Config

[](#config)

Architect uses a php config file, by default it uses `architect.php` in the current directory. You can pass another file with the `-c` flag if so desired.

A basic configuration file, which checks the `src` and `tests` folder files, and has the `layered architecture` and `no src to test` rulesets.

```
