Skip to content

Commit c068832

Browse files
committed
add readme and boilerplate files
0 parents  commit c068832

File tree

7 files changed

+207
-0
lines changed

7 files changed

+207
-0
lines changed

.gitattributes

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
.editorconfig export-ignore
2+
.gitattributes export-ignore
3+
.gitignore export-ignore
4+
.scrutinizer.yml export-ignore
5+
.travis.yml export-ignore
6+
CONTRIBUTING.md export-ignore
7+
Tests/ export-ignore

.gitignore

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

.scrutinizer.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
filter:
2+
exclude_paths: [vendor/*, Tests/*]
3+
checks:
4+
php:
5+
code_rating: true
6+
duplication: true
7+
tools:
8+
external_code_coverage: true
9+
php_code_sniffer:
10+
config:
11+
standard: "PSR2"

.travis.yml

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

CONTRIBUTING.md

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
# Contributing
2+
3+
If you're here, you would like to contribute to this repository and you're really welcome!
4+
5+
6+
## Bug reports
7+
8+
If you find a bug or a documentation issue, please report it or even better: fix it :). If you report it,
9+
please be as precise as possible. Here is a little list of required information:
10+
11+
- Precise description of the bug
12+
- Details of your environment (for example: OS, PHP version, installed extensions)
13+
- Backtrace which might help identifing the bug
14+
15+
16+
## Security issues
17+
18+
If you discover any security related issues, please contact us at [[email protected]](mailto:[email protected]) instead of submitting an issue on Github. This allows us to fix the issue and release a security hotfix without publicly disclosing the vulnerability.
19+
20+
21+
## Feature requests
22+
23+
If you think a feature is missing, please report it or even better: implement it :). If you report it, describe the more
24+
precisely what you would like to see implemented and we will discuss what is the best approach for it. If you can do
25+
some research before submitting it and link the resources to your description, you're awesome! It will allow us to more
26+
easily understood/implement it.
27+
28+
29+
## Sending a Pull Request
30+
31+
If you're here, you are going to fix a bug or implement a feature and you're the best! To do it, first fork the repository, clone it and create a new branch with the following commands:
32+
33+
``` bash
34+
$ git clone [email protected]:your-name/repo-name.git
35+
$ git checkout -b feature-or-bug-fix-description
36+
```
37+
38+
Then install the dependencies through [Composer](https://getcomposer.org/):
39+
40+
``` bash
41+
$ composer install
42+
```
43+
44+
Write code and tests. When you are ready, run the tests. (This is usually [PHPUnit](http://phpunit.de/) or [PHPSpec](http://phpspec.net/))
45+
46+
``` bash
47+
$ composer test
48+
```
49+
50+
When you are ready with the code, tested it and documented it, you can commit and push it with the following commands:
51+
52+
``` bash
53+
$ git commit -m "Feature or bug fix description"
54+
$ git push origin feature-or-bug-fix-description
55+
```
56+
57+
**Note:** Please write your commit messages in the imperative and follow the [guidelines](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html) for clear and concise messages.
58+
59+
Then [create a pull request](https://help.github.com/articles/creating-a-pull-request/) on GitHub.
60+
61+
Please make sure that each individual commit in your pull request is meaningful. If you had to make multiple intermediate commits while developing, please squash them before submitting with the following commands (here, we assume you would like to squash 3 commits in a single one):
62+
63+
``` bash
64+
$ git rebase -i HEAD~3
65+
```
66+
67+
If your branch conflicts with the master branch, you will need to rebase and repush it with the following commands:
68+
69+
``` bash
70+
$ git remote add upstream [email protected]:php-http/repo-name.git
71+
$ git pull --rebase upstream master
72+
$ git push -f origin feature-or-bug-fix-description
73+
```
74+
75+
76+
## Coding standard
77+
78+
This repository follows the [PSR-2 standard](http://www.php-fig.org/psr/psr-2/) and so, if you want to contribute,
79+
you must follow these rules.
80+
81+
82+
## Semver
83+
84+
We are trying to follow [semver](http://semver.org/). When you are making BC breaking changes, please let us know why you think it is important. In this case, your patch can only be included in the next major version.
85+

LICENSE

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Copyright (c) 2015 PHP HTTP Team <[email protected]>
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 furnished
8+
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
19+
THE SOFTWARE.

README.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# PhpHttpBundle
2+
3+
[![Latest Version](https://img.shields.io/github/release/php-http/PhpHttpBundle.svg?style=flat-square)](https://github.com/php-http/PhpHttpBundle/releases)
4+
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE)
5+
[![Build Status](https://img.shields.io/travis/php-http/PhpHttpBundle.svg?style=flat-square)](https://travis-ci.org/php-http/PhpHttpBundle)
6+
[![Code Coverage](https://img.shields.io/scrutinizer/coverage/g/php-http/PhpHttpBundle.svg?style=flat-square)](https://scrutinizer-ci.com/g/php-http/PhpHttpBundle)
7+
[![Quality Score](https://img.shields.io/scrutinizer/g/php-http/PhpHttpBundle.svg?style=flat-square)](https://scrutinizer-ci.com/g/php-http/PhpHttpBundle)
8+
[![Total Downloads](https://img.shields.io/packagist/dt/php-http/PhpHttpBundle.svg?style=flat-square)](https://packagist.org/packages/php-http/PhpHttpBundle)
9+
10+
**Symfony integration for the [php-http](http://php-http.readthedocs.org/) system**
11+
12+
This is early work in progress for now. See the issues for a plan and discussion what should be done.
13+
14+
15+
## Install
16+
17+
Via Composer
18+
19+
``` bash
20+
$ composer require php-http/php-http-bundle
21+
```
22+
23+
24+
## Usage
25+
26+
27+
## Testing
28+
29+
``` bash
30+
$ composer test
31+
```
32+
33+
34+
## Contributing
35+
36+
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
37+
38+
39+
## Security
40+
41+
If you discover any security related issues, please contact us at [[email protected]](mailto:[email protected]).
42+
43+
44+
## License
45+
46+
The MIT License (MIT). Please see [License File](LICENSE) for more information.

0 commit comments

Comments
 (0)