Skip to content

Commit 8838183

Browse files
committed
1 parent 8b2fd6f commit 8838183

File tree

7 files changed

+3742
-0
lines changed

7 files changed

+3742
-0
lines changed

.gitignore

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

.scrutinizer.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
filter:
2+
excluded_paths:
3+
- examples/*
4+
- tests/*
5+
- vendor/*

LICENSE renamed to LICENSE.md

File renamed without changes.

composer.json

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
{
2+
"name": "chillerlan/php-httpinterface",
3+
"description": "A http client interface for PHP7+",
4+
"minimum-stability": "dev",
5+
"license": "MIT",
6+
"authors": [
7+
{
8+
"name": "smiley",
9+
"email": "smiley@chillerlan.net",
10+
"homepage": "https://github.com/codemasher"
11+
}
12+
],
13+
"support": {
14+
"issues": "https://github.com/chillerlan/php-httpinterface/issues",
15+
"source": "https://github.com/chillerlan/php-httpinterface"
16+
},
17+
"require": {
18+
"php": "^7.0.3",
19+
"chillerlan/php-traits": "^1.1"
20+
},
21+
"require-dev": {
22+
"chillerlan/php-curl": "dev-master",
23+
"guzzlehttp/guzzle": "^6.3",
24+
"phpunit/phpunit": "^6.5"
25+
},
26+
"autoload": {
27+
"psr-4": {
28+
"chillerlan\\HTTP\\": "src/"
29+
}
30+
},
31+
"autoload-dev": {
32+
"psr-4": {
33+
"chillerlan\\HTTPTest\\": "tests/",
34+
"chillerlan\\HTTPExamples\\": "examples/"
35+
}
36+
}
37+
}

phpmd.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="chillerlan/php-httpinterface PMD ruleset"
3+
xmlns="http://pmd.sf.net/ruleset/1.0.0"
4+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5+
xsi:schemaLocation="http://pmd.sf.net/ruleset/1.0.0 http://pmd.sf.net/ruleset_xml_schema.xsd"
6+
xsi:noNamespaceSchemaLocation="http://pmd.sf.net/ruleset_xml_schema.xsd">
7+
<description>chillerlan/php-httpinterface PMD ruleset</description>
8+
<exclude-pattern>*/examples/*</exclude-pattern>
9+
<exclude-pattern>*/tests/*</exclude-pattern>
10+
<rule ref="rulesets/cleancode.xml"/>
11+
<rule ref="rulesets/codesize.xml"/>
12+
<rule ref="rulesets/design.xml"/>
13+
<rule ref="rulesets/controversial.xml">
14+
<exclude name="CamelCaseMethodName"/>
15+
<exclude name="CamelCasePropertyName"/>
16+
<exclude name="CamelCaseParameterName"/>
17+
<exclude name="CamelCaseVariableName"/>
18+
</rule>
19+
<rule ref="rulesets/naming.xml">
20+
<exclude name="LongVariable"/>
21+
<exclude name="ShortVariable"/>
22+
</rule>
23+
<rule ref="rulesets/unusedcode.xml">
24+
<exclude name="UnusedFormalParameter"/>
25+
</rule>
26+
</ruleset>

phpunit.xml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<phpunit backupGlobals="false"
3+
backupStaticAttributes="false"
4+
bootstrap="vendor/autoload.php"
5+
colors="true"
6+
convertErrorsToExceptions="true"
7+
convertNoticesToExceptions="true"
8+
convertWarningsToExceptions="true"
9+
processIsolation="false"
10+
stopOnError="false"
11+
stopOnFailure="false"
12+
stopOnIncomplete="false"
13+
stopOnSkipped="false"
14+
>
15+
<testsuites>
16+
<testsuite name="php-httpinterface test suite">
17+
<directory suffix=".php">./tests</directory>
18+
</testsuite>
19+
</testsuites>
20+
<filter>
21+
<whitelist>
22+
<directory suffix=".php">./src</directory>
23+
</whitelist>
24+
</filter>
25+
</phpunit>

tests/cacert.pem

Lines changed: 3646 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)