You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PHPArkitect helps you to keep your PHP codebase coherent and solid, by permitting to add some architectural constraint check to your workflow.
7
17
You can express the constraint that you want to enforce, in simple and readable PHP code, for example:
8
18
@@ -12,8 +22,79 @@ Rule::allClasses()
12
22
->should(new HaveNameMatching('*Controller'))
13
23
->because("it's a symfony naming convention");
14
24
```
25
+
# Installation
26
+
27
+
## Using Composer
28
+
29
+
```bash
30
+
composer require --dev phparkitect/phparkitect
31
+
```
32
+
33
+
## Using a Phar
34
+
Sometimes your project can conflict with one or more of PHPArkitect's dependencies. In that case you may find the Phar (a self-contained PHP executable) useful.
@@ -187,78 +268,8 @@ You can also define components and ensure that a component:
187
268
188
269
Check out [this demo project](https://github.com/phparkitect/arkitect-demo) to get an idea on how write rules.
189
270
190
-
# Installation
191
-
192
-
## Using Composer
193
-
194
-
```bash
195
-
composer require --dev phparkitect/phparkitect
196
-
```
197
-
198
-
## Using a Phar
199
-
Sometimes your project can conflict with one or more of PHPArkitect's dependencies. In that case you may find the Phar (a self-contained PHP executable) useful.
*`--target-php-version`: With this parameter, you can specify which PHP version should use the parser. This can be useful to debug problems and to understand if there are problems with a different PHP version.
*`--stop-on-failure`: With this option the process will end immediately after the first violation.
339
+
340
+
# Integrations
341
+
342
+
## Laravel
343
+
If you plan to use Arkitect with Laravel, [smortexa](https://github.com/smortexa) wrote a nice wrapper with some predefined rules for laravel: https://github.com/smortexa/laravel-arkitect
0 commit comments