Skip to content

Commit 21a9f2c

Browse files
committed
(WIP)
0 parents  commit 21a9f2c

39 files changed

+1644
-0
lines changed

.editorconfig

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

.gitattributes

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

.github/CONTRIBUTING

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Please see http://docs.php-http.org/en/latest/development/contributing.html

.github/ISSUE_TEMPLATE.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
| Q | A
2+
| ------------ | ---
3+
| Bug? | no
4+
| New Feature? | no
5+
| Version | Specific version or SHA of a commit
6+
7+
8+
#### Actual Behavior
9+
10+
What is the actual behavior?
11+
12+
13+
#### Expected Behavior
14+
15+
What is the behavior you expect?
16+
17+
18+
#### Steps to Reproduce
19+
20+
What are the steps to reproduce this bug? Please add code examples,
21+
screenshots or links to GitHub repositories that reproduce the problem.
22+
23+
24+
#### Possible Solutions
25+
26+
If you have already ideas how to solve the issue, add them here.
27+
(remove this section if not needed)

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
| Q | A
2+
| --------------- | ---
3+
| Bug fix? | no|yes
4+
| New feature? | no|yes
5+
| BC breaks? | no|yes
6+
| Deprecations? | no|yes
7+
| Related tickets | fixes #X, partially #Y, mentioned in #Z
8+
| License | MIT
9+
10+
11+
#### What's in this PR?
12+
13+
Explain the contents of the PR.
14+
15+
16+
#### Why?
17+
18+
Which problem does the PR fix? (remove this section if you linked an issue above)
19+
20+
21+
#### Example Usage
22+
23+
``` php
24+
// If you added new features, show examples of how to use them here
25+
// (remove this section if not a new feature)
26+
27+
$foo = new Foo();
28+
29+
// Now we can do
30+
$foo->doSomething();
31+
```
32+
33+
34+
#### BC Breaks/Deprecations
35+
36+
Describe BC breaks/deprecations here. (remove this section if not needed)
37+
38+
39+
#### To Do
40+
41+
- [ ] Add tests

.gitignore

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

.php_cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?php
2+
3+
/*
4+
* In order to make it work, fabpot/php-cs-fixer and sllh/php-cs-fixer-styleci-bridge must be installed globally
5+
* with composer.
6+
*
7+
* @link https://github.com/Soullivaneuh/php-cs-fixer-styleci-bridge
8+
* @link https://github.com/FriendsOfPHP/PHP-CS-Fixer
9+
*/
10+
11+
use SLLH\StyleCIBridge\ConfigBridge;
12+
13+
return ConfigBridge::create();

.scrutinizer.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
filter:
2+
paths: [src/*]
3+
checks:
4+
php:
5+
code_rating: true
6+
duplication: true
7+
tools:
8+
external_code_coverage: true

.styleci.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
preset: symfony
2+
3+
finder:
4+
path:
5+
- "src"
6+
- "tests"
7+
8+
enabled:
9+
- short_array_syntax

.travis.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
language: php
2+
3+
sudo: false
4+
5+
cache:
6+
directories:
7+
- $HOME/.composer/cache
8+
9+
php:
10+
- 5.6
11+
- 7.0
12+
- hhvm
13+
14+
env:
15+
global:
16+
- TEST_COMMAND="composer test"
17+
18+
branches:
19+
except:
20+
- /^analysis-.*$/
21+
22+
matrix:
23+
fast_finish: true
24+
include:
25+
- php: 5.6
26+
env: COVERAGE=true TEST_COMMAND="composer test-ci"
27+
28+
before_install:
29+
- travis_retry composer self-update
30+
31+
install:
32+
- travis_retry composer update ${COMPOSER_FLAGS} --prefer-source --no-interaction
33+
34+
script:
35+
- $TEST_COMMAND
36+
37+
after_success:
38+
- if [[ "$COVERAGE" = true ]]; then wget https://scrutinizer-ci.com/ocular.phar; fi
39+
- if [[ "$COVERAGE" = true ]]; then php ocular.phar code-coverage:upload --format=php-clover build/coverage.xml; fi

0 commit comments

Comments
 (0)