Skip to content

Commit 5ddeebf

Browse files
committed
Initial commit
0 parents  commit 5ddeebf

File tree

12 files changed

+176
-0
lines changed

12 files changed

+176
-0
lines changed

.editorconfig

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# editorconfig.org
2+
3+
root = true
4+
5+
[*]
6+
charset = utf-8
7+
end_of_line = lf
8+
indent_size = 4
9+
indent_style = space
10+
insert_final_newline = true
11+
trim_trailing_whitespace = true
12+
13+
[*.md]
14+
trim_trailing_whitespace = false

.gitattributes

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/.github export-ignore
2+
/docs export-ignore
3+
/tests export-ignore
4+
/.editorconfig export-ignore
5+
/.gitattributes export-ignore
6+
/.gitignore export-ignore
7+
/.scrutinizer.yml export-ignore
8+
/phpcs.xml export-ignore
9+
/phpunit.xml.dist export-ignore
10+
/psalm.xml export-ignore

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
composer.lock
2+
phpunit.xml
3+
vendor

.scrutinizer.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
build:
2+
nodes:
3+
analysis:
4+
tests:
5+
override:
6+
- php-scrutinizer-run
7+
filter:
8+
paths:
9+
- "src/*"
10+
checks:
11+
php: true
12+
tools:
13+
php_code_coverage:
14+
enabled: true
15+
external_code_coverage:
16+
timeout: 600

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# HTTP ___ Change Log
2+
3+
## 1.0.0 - under development
4+
5+
- Initial stable release.
6+
- [#44](https://github.com/laminas/laminas-diactoros/pull/44) fixes an issue whereby the uploaded file size was being provided as an integer string, and causing type errors. The value is now cast to integer before creating an `UploadedFile` instance.

LICENSE.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Copyright (c) 2020 Evgeniy Zyubin
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy
4+
of this software and associated documentation files (the "Software"), to deal
5+
in the Software without restriction, including without limitation the rights
6+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7+
copies of the Software, and to permit persons to whom the Software is
8+
furnished to do so, subject to the following conditions:
9+
10+
The above copyright notice and this permission notice shall be included in all
11+
copies or substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
19+
SOFTWARE.

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# HTTP Error Handler
2+
3+
The repository is under development, and the description will appear later.

composer.json

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
{
2+
"name": "httpsoft/http-error-handler",
3+
"description": "Error handling PSR-7 components",
4+
"keywords": ["php", "http", "error-handler", "error-middleware", "http-error", "psr-7", "psr-15"],
5+
"homepage": "https://httpsoft.org/",
6+
"type": "library",
7+
"license": "MIT",
8+
"authors": [
9+
{
10+
"name": "Evgeniy Zyubin",
11+
"email": "[email protected]",
12+
"homepage": "https://devanych.ru/",
13+
"role": "Founder and lead developer"
14+
}
15+
],
16+
"support": {
17+
"issues": "https://github.com/httpsoft/http-error-handler/issues",
18+
"source": "https://github.com/httpsoft/http-error-handler",
19+
"docs": "https://httpsoft.org/docs/error-handler"
20+
},
21+
"require": {
22+
"php": "^7.4"
23+
},
24+
"require-dev": {
25+
"phpunit/phpunit": "^9.1",
26+
"squizlabs/php_codesniffer": "^3.5"
27+
},
28+
"autoload": {
29+
"psr-4": {
30+
"HttpSoft\\ErrorHandler\\": "src/"
31+
}
32+
},
33+
"autoload-dev": {
34+
"psr-4": {
35+
"HttpSoft\\Tests\\ErrorHandler\\": "tests/"
36+
}
37+
},
38+
"scripts": {
39+
"test": "phpunit --colors=always",
40+
"cs-check": "phpcs",
41+
"cs-fix": "phpcbf",
42+
"check": [
43+
"@cs-check",
44+
"@test"
45+
]
46+
}
47+
}

phpcs.xml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?xml version="1.0"?>
2+
<ruleset name="HttpSoft Error Handler Coding Standard">
3+
<description>HttpSoft Error Handler Coding Standard</description>
4+
5+
<!-- display progress -->
6+
<arg value="p"/>
7+
<arg name="colors"/>
8+
9+
<!-- inherit rules from: -->
10+
<rule ref="PSR12"/>
11+
<rule ref="Generic.Arrays.DisallowLongArraySyntax"/>
12+
<rule ref="Squiz.WhiteSpace.OperatorSpacing">
13+
<properties>
14+
<property name="ignoreNewlines" value="true"/>
15+
</properties>
16+
</rule>
17+
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace">
18+
<properties>
19+
<property name="ignoreBlankLines" value="false"/>
20+
</properties>
21+
</rule>
22+
23+
<!-- Paths to check -->
24+
<file>src</file>
25+
<file>tests</file>
26+
</ruleset>

phpunit.xml.dist

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<phpunit
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/8.5/phpunit.xsd"
5+
bootstrap="./vendor/autoload.php"
6+
executionOrder="depends,defects"
7+
beStrictAboutCoversAnnotation="true"
8+
beStrictAboutOutputDuringTests="true"
9+
beStrictAboutTodoAnnotatedTests="true"
10+
convertWarningsToExceptions="true"
11+
convertNoticesToExceptions="true"
12+
convertErrorsToExceptions="true"
13+
stopOnFailure="false"
14+
verbose="true"
15+
colors="true"
16+
>
17+
<php>
18+
<ini name="error_reporting" value="-1" />
19+
</php>
20+
21+
<testsuites>
22+
<testsuite name="HttpSoft Error Handler Test Suite">
23+
<directory>./tests/</directory>
24+
</testsuite>
25+
</testsuites>
26+
27+
<filter>
28+
<whitelist>
29+
<directory suffix=".php">./src/</directory>
30+
</whitelist>
31+
</filter>
32+
</phpunit>

0 commit comments

Comments
 (0)