PHPackages                             mortexa/laravel-arkitect - 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. mortexa/laravel-arkitect

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

mortexa/laravel-arkitect
========================

Test and enforce architectural rules in your Laravel applications

v0.8.1(1y ago)119384.2k↓19.7%7[1 PRs](https://github.com/smortexa/laravel-arkitect/pulls)MITPHPPHP ^8.0CI passing

Since Aug 5Pushed 1y ago4 watchersCompare

[ Source](https://github.com/smortexa/laravel-arkitect)[ Packagist](https://packagist.org/packages/mortexa/laravel-arkitect)[ RSS](/packages/mortexa-laravel-arkitect/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (6)Versions (14)Used By (0)

[![art/laravel-arkitect.png](art/laravel-arkitect.png)](art/laravel-arkitect.png)

Laravel Arkitect
================

[](#laravel-arkitect)

[![Latest Stable Version](https://camo.githubusercontent.com/e18625329ef7a6b355781d3ed5d3fa6126350c2e82cadea3bbb61eef174b1abf/687474703a2f2f706f7365722e707567782e6f72672f6d6f72746578612f6c61726176656c2d61726b69746563742f76)](https://packagist.org/packages/mortexa/laravel-arkitect) [![Total Downloads](https://camo.githubusercontent.com/30fbc81eee21c1e88ecc0ffd2816d6b58176a5dbb73480e0c80239502017bfe9/687474703a2f2f706f7365722e707567782e6f72672f6d6f72746578612f6c61726176656c2d61726b69746563742f646f776e6c6f616473)](https://packagist.org/packages/mortexa/laravel-arkitect) [![Latest Unstable Version](https://camo.githubusercontent.com/352871aef3a13bced9e78d864704d8a9b73382fb10082f1e3f57c34e25f56beb/687474703a2f2f706f7365722e707567782e6f72672f6d6f72746578612f6c61726176656c2d61726b69746563742f762f756e737461626c65)](https://packagist.org/packages/mortexa/laravel-arkitect) [![License](https://camo.githubusercontent.com/a7fbab149a98593ed1788c50d2c48fe3c41f6bd0041ad82af741b9d0b9671ed3/687474703a2f2f706f7365722e707567782e6f72672f6d6f72746578612f6c61726176656c2d61726b69746563742f6c6963656e7365)](https://packagist.org/packages/mortexa/laravel-arkitect) [![PHP Version Require](https://camo.githubusercontent.com/c29907a038d0b74073127139ca1046bd4a37b8c77f28275923326779e425d5c0/687474703a2f2f706f7365722e707567782e6f72672f6d6f72746578612f6c61726176656c2d61726b69746563742f726571756972652f706870)](https://packagist.org/packages/mortexa/laravel-arkitect)

Laravel Arkitect lets you test and enforce your architectural rules in your Laravel applications, and it's a [PHPArkitect](https://github.com/phparkitect/arkitect) wrapper for Laravel. This package helps you to keep your app's architecture clean and consistent.

```
├─ storage
├─ tests
│   ├─ Architecture ✅
│   ├─ Browser
│   ├─ Feature
│   └─ Unit
└─ vendor

```

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

[](#installation)

You can install the package via Composer:

```
composer require mortexa/laravel-arkitect --dev

```

Usage
-----

[](#usage)

First, you should create your architectural rules by running the following Artisan command:

`php artisan make:arkitect ControllersNaming`

By running the command, the `ControllersNaming.php` file will be created in your application's `tests/Architecture` directory like this:

```
