Skip to content

Commit 762ac45

Browse files
committed
Initial commit
0 parents  commit 762ac45

23 files changed

+1153
-0
lines changed

.editorconfig

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
; This file is for unifying the coding style for different editors and IDEs.
2+
; More information at http://editorconfig.org
3+
root = true
4+
5+
[*]
6+
indent_style = space
7+
end_of_line = lf
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
charset = utf-8
11+
12+
[*.bat]
13+
indent_style = space
14+
indent_size = 4
15+
end_of_line = crlf
16+
17+
[*.yml]
18+
indent_style = space
19+
indent_size = 4
20+
21+
[*.json]
22+
indent_style = space
23+
indent_size = 4
24+
25+
[*.yaml]
26+
indent_style = space
27+
indent_size = 4

.gitignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/.idea
2+
/.phpunit.result.cache
3+
/tmp
4+
/logs
5+
/vendor/
6+
/bin
7+
coverage.xml
8+
phive*.phar

.scrutinizer.yml

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
filter:
2+
excluded_paths:
3+
- bin/*
4+
- vendor/*
5+
- tests/*
6+
- config/*
7+
- docs/*
8+
- public/*
9+
- tests/bootstrap.php
10+
dependency_paths:
11+
- vendor/*
12+
13+
build_failure_conditions:
14+
- 'patches.label("Spacing").new.count > 1' # More than 1 new spacing patch
15+
16+
- 'issues.label("coding-style").exists' # No coding style issues allowed
17+
- 'issues.label("coding-style").new.exists' # No new coding style issues allowed
18+
19+
- 'issues.label("coding-style").new.count > 1' # More than 1 new coding style issues.
20+
- 'issues.severity(>= MAJOR).new.exists' # New issues of major or higher severity
21+
22+
- 'project.metric("scrutinizer.quality", < 9)' # Code Quality Rating drops below 9
23+
24+
# Code Coverage decreased from previous inspection by more than 1%
25+
- 'project.metric_change("scrutinizer.test_coverage", < -0.1)'
26+
27+
build:
28+
services:
29+
#mariadb: 10.1.40
30+
environment:
31+
hosts:
32+
cake3.world-architects.com: '127.0.0.1'
33+
redis: true
34+
node: 10.16.0
35+
php:
36+
version: '7.4'
37+
ini:
38+
phar.readonly: 'Off'
39+
#elasticsearch: '6'
40+
41+
nodes:
42+
tests-php72:
43+
environment:
44+
php:
45+
version: '7.2'
46+
ini:
47+
phar.readonly: 'Off'
48+
tests:
49+
override:
50+
- phive --no-progress install --target ./bin --trust-gpg-keys 0x4AA394086372C20A,0x8E730BA25823D8B5,0x31C7E470E2138192,0x4AA394086372C20A,0x0F9684B8B16B7AB0
51+
- composer self-update
52+
- composer --version
53+
- composer global require hirak/prestissimo --no-plugins
54+
- composer install --prefer-dist --no-interaction
55+
- npm install yarn -g
56+
- chmod -R +x ./bin
57+
-
58+
command: './bin/phpunit --coverage-clover=coverage.xml --bootstrap ./tests/bootstrap.php'
59+
coverage:
60+
file: 'coverage.xml'
61+
format: 'php-clover'
62+
63+
tests-php73:
64+
environment:
65+
php:
66+
version: '7.2'
67+
ini:
68+
phar.readonly: 'Off'
69+
tests:
70+
override:
71+
- phive --no-progress install --target ./bin --trust-gpg-keys 0x4AA394086372C20A,0x8E730BA25823D8B5,0x31C7E470E2138192,0x4AA394086372C20A,0x0F9684B8B16B7AB0
72+
- composer self-update
73+
- composer --version
74+
- composer global require hirak/prestissimo --no-plugins
75+
- composer install --prefer-dist --no-interaction
76+
- npm install yarn -g
77+
- chmod -R +x ./bin
78+
-
79+
command: './bin/phpunit --coverage-clover=coverage.xml --bootstrap ./tests/bootstrap.php'
80+
coverage:
81+
file: 'coverage.xml'
82+
format: 'php-clover'
83+
84+
tests-php74:
85+
environment:
86+
php:
87+
version: '7.2'
88+
ini:
89+
phar.readonly: 'Off'
90+
tests:
91+
override:
92+
- phive --no-progress install --target ./bin --trust-gpg-keys 0x4AA394086372C20A,0x8E730BA25823D8B5,0x31C7E470E2138192,0x4AA394086372C20A,0x0F9684B8B16B7AB0
93+
- composer self-update
94+
- composer --version
95+
- composer global require hirak/prestissimo --no-plugins
96+
- composer install --prefer-dist --no-interaction
97+
- npm install yarn -g
98+
- chmod -R +x ./bin
99+
-
100+
command: './bin/phpunit --coverage-clover=coverage.xml --bootstrap ./tests/bootstrap.php'
101+
coverage:
102+
file: 'coverage.xml'
103+
format: 'php-clover'
104+
105+
analysis:
106+
tests:
107+
override:
108+
- php-scrutinizer-run --enable-security-analysis
109+
- phpcs-run --standard=./phpcs.xml ./src
110+
- phpcs-run --standard=./phpcs.xml ./plugins

composer.json

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
{
2+
"name": "phauthentic/dispatcher-middleware",
3+
"description": "",
4+
"type": "library",
5+
"license": "MIT",
6+
"authors": [
7+
{
8+
"name": "Florian Krämer",
9+
"role": "Maintainer"
10+
}
11+
],
12+
"require": {
13+
"php": "^7.2",
14+
"psr/container": "^1.0",
15+
"psr/http-factory": "^1.0",
16+
"psr/http-server-handler": "^1.0",
17+
"psr/http-server-middleware": "^1.0"
18+
},
19+
"require-dev": {
20+
"instituteweb/composer-scripts": "^1.1"
21+
},
22+
"minimum-stability": "stable",
23+
"prefer-stable": true,
24+
"config": {
25+
"bin-dir": "bin",
26+
"process-timeout": 0,
27+
"sort-packages": true
28+
},
29+
"autoload": {
30+
"psr-4": {
31+
"Phauthentic\\": "src"
32+
}
33+
},
34+
"autoload-dev": {
35+
"psr-4": {
36+
"Phauthentic\\Test\\": "tests"
37+
}
38+
},
39+
"scripts": {
40+
"post-install-cmd": [
41+
"php config/composer_post_install.php"
42+
],
43+
"tests": [
44+
"\\InstituteWeb\\ComposerScripts\\ImprovedScriptExecution::apply",
45+
"./bin/phpunit"
46+
],
47+
"cscheck": [
48+
"\\InstituteWeb\\ComposerScripts\\ImprovedScriptExecution::apply",
49+
"./bin/phpcs ./src ./tests --standard=./phpcs.xml -s"
50+
],
51+
"csfix": [
52+
"\\InstituteWeb\\ComposerScripts\\ImprovedScriptExecution::apply",
53+
"./bin/phpcbf ./src ./tests --standard=./phpcs.xml"
54+
],
55+
"analyze": [
56+
"\\InstituteWeb\\ComposerScripts\\ImprovedScriptExecution::apply",
57+
"./bin/phpstan analyse -l 5 -c phpstan.neon ./src\\"
58+
],
59+
"phive": [
60+
"php ./config/composer_phive.php"
61+
]
62+
}
63+
}

0 commit comments

Comments
 (0)