{"repo":"smortexa/laravel-arkitect","free":true,"listed":false,"github":"https://github.com/smortexa/laravel-arkitect","clone":"git clone https://github.com/smortexa/laravel-arkitect.git","description":"Test and enforce architectural rules in your Laravel applications. Keep your app's architecture clean and consistent!","language":"PHP","stars":120,"topics":["laravel","architecture","php","testing"],"license":"MIT","category":"dev-tools","readme_excerpt":"Laravel Arkitect Laravel Arkitect lets you test and enforce your architectural rules in your Laravel applications, and it's a PHPArkitect wrapper for Laravel. This package helps you to keep your app's architecture clean and consistent. Installation You can install the package via Composer: 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: Then, you must implement rule() and path() methods based on the following example. And finally, you can run your tests by the following command: php artisan test:arkitect Done! If you want to stop checking command immediately after first violation, you can use --stop-on-failure option. For all available rules, please take a look at the PHPArkitect repository: https://github.com/phparkitect/arkitect Default rules Some opinionated rules are provided by the package and apply by default. These rules are about Laravel user-land structure. You are free to customize or ignore them entirely by publishing config file. Example Configuration If you want to customize the default rules provided by the package, You can publish the Laravel Arkitect configuration file using the following Artisan command: php artisan vendor:publish --provider=\"Mortexa\\LaravelArkitect\\ArkitectServiceProvider\" --tag=\"config\" The arkitect configuration file","default_branch":null,"files":null,"tree":[],"storefront":"/r/smortexa","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/smortexa/laravel-arkitect/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}