Skip to content

Commit a4211ce

Browse files
committed
Modular, high-performance routing system for PivotPHP - Express.js-inspired API with PSR compliance
0 parents  commit a4211ce

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

59 files changed

+13779
-0
lines changed

.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/vendor/
2+
/coverage/
3+
/.phpunit.cache/
4+
/.php-cs-fixer.cache
5+
/composer.lock
6+
/.idea/
7+
/.vscode/
8+
*.log
9+
.DS_Store
10+
/storage/cache/routes/*.php
11+
!/storage/cache/routes/.gitkeep

.php-cs-fixer.php

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
<?php
2+
3+
$finder = PhpCsFixer\Finder::create()
4+
->in(__DIR__ . '/src')
5+
->in(__DIR__ . '/tests')
6+
->name('*.php')
7+
->notName('*.blade.php')
8+
->ignoreDotFiles(true)
9+
->ignoreVCS(true);
10+
11+
$config = new PhpCsFixer\Config();
12+
return $config
13+
->setRules([
14+
'@PSR12' => true,
15+
'array_syntax' => ['syntax' => 'short'],
16+
'ordered_imports' => ['sort_algorithm' => 'alpha'],
17+
'no_unused_imports' => true,
18+
'not_operator_with_successor_space' => true,
19+
'trailing_comma_in_multiline' => ['elements' => ['arrays']],
20+
'phpdoc_scalar' => true,
21+
'unary_operator_spaces' => true,
22+
'binary_operator_spaces' => true,
23+
'blank_line_before_statement' => [
24+
'statements' => ['break', 'continue', 'declare', 'return', 'throw', 'try'],
25+
],
26+
'phpdoc_single_line_var_spacing' => true,
27+
'phpdoc_var_without_name' => true,
28+
'method_argument_space' => [
29+
'on_multiline' => 'ensure_fully_multiline',
30+
'keep_multiple_spaces_after_comma' => true,
31+
],
32+
])
33+
->setFinder($finder);

0 commit comments

Comments
 (0)