This repository has been archived by the owner on Jan 6, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit ae43658
Showing
11 changed files
with
252 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
root = true | ||
|
||
[*] | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
indent_style = space | ||
indent_size = 4 | ||
|
||
[*.yml] | ||
indent_style = space | ||
indent_size = 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/tests export-ignore | ||
/.editorconfig export-ignore | ||
/.gitattributes export-ignore | ||
/.gitignore export-ignore | ||
/.scrutinizer.yml export-ignore | ||
/.travis.yml export-ignore | ||
/CONTRIBUTING.md export-ignore | ||
/phpunit.xml.dist export-ignore |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/build | ||
/vendor | ||
/composer.lock | ||
/phpunit.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
filter: | ||
paths: [src/*] | ||
tools: | ||
php_analyzer: true | ||
php_mess_detector: true | ||
php_pdepend: true | ||
external_code_coverage: | ||
timeout: '600' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
language: php | ||
|
||
php: | ||
- 5.4 | ||
- 5.5 | ||
- 5.6 | ||
- 7.0 | ||
- hhvm | ||
|
||
matrix: | ||
allow_failures: | ||
- php: 7.0 | ||
- php: hhvm | ||
include: | ||
- php: 5.4 | ||
env: | ||
- COMPOSER_FLAGS="--prefer-stable --prefer-lowest" | ||
- PHPUNIT_FLAGS="--coverage-clover build/coverage.xml" | ||
- COVERAGE=true | ||
|
||
install: | ||
- travis_retry composer self-update | ||
- travis_retry composer update ${COMPOSER_FLAGS} --prefer-source --no-interaction | ||
|
||
script: vendor/bin/phpunit ${PHPUNIT_FLAGS} | ||
|
||
after_script: | ||
- if [[ "$COVERAGE" = true ]]; then wget https://scrutinizer-ci.com/ocular.phar; fi | ||
- if [[ "$COVERAGE" = true ]]; then php ocular.phar code-coverage:upload --format=php-clover build/coverage.xml; fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Change Log | ||
|
||
|
||
## Unreleased |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
# Contributing | ||
|
||
If you're here, you would like to contribute to this repository and you're really welcome! | ||
|
||
|
||
## Coding standard | ||
|
||
This repository follows the [PSR-2 standard](http://www.php-fig.org/psr/psr-2/) and so, if you want to contribute, | ||
you must follow these rules. | ||
|
||
|
||
## Feature request | ||
|
||
If you think a feature is missing, please report it or even better implement it :). If you report it, describe the more | ||
precisely what you would like to see implemented and we will discuss what is the best approach for it. If you can do | ||
some search before submitting it and link the resources to your description, you're awesome! It will allow me to more | ||
easily understood/implement it. | ||
|
||
|
||
## Bug report | ||
|
||
If you think you have detected a bug or a doc issue, please report it or even better fix it :). If you report it, | ||
please be the more precise possible. Here a little list of required informations: | ||
|
||
* Precise description of the bug. | ||
|
||
|
||
## Bug fix | ||
|
||
If you're here, you are going to fix a bug and you're the best! To do it, first fork the repository, clone it and | ||
create a new branch with the following commands: | ||
|
||
``` bash | ||
$ git clone [email protected]:your-name/repo-name.git | ||
$ git checkout -b bug-fix-description | ||
``` | ||
|
||
Then, install the dependencies through [Composer](https://getcomposer.org/): | ||
|
||
``` bash | ||
$ composer install | ||
``` | ||
|
||
When you're on the new branch with the dependencies, code as much as you want and when the fix is ready, don't commit | ||
it immediately. Before, you will need to add tests and update the doc. For the tests, everything is tested with | ||
[PHPUnit](http://phpunit.de/) and the doc is in the markdown format under the `doc` directory. | ||
|
||
To run the tests, use the following command: | ||
|
||
``` bash | ||
$ vendor/bin/phpunit | ||
``` | ||
|
||
When you have fixed the bug, tested it and documented it, you can commit and push it with the following commands: | ||
|
||
``` bash | ||
$ git commit -m "Bug fix description" | ||
$ git push origin bug-fix-description | ||
``` | ||
|
||
If you have reworked you patch, please squash all your commits in a single one with the following commands (here, we | ||
will assume you would like to squash 3 commits in a single one): | ||
|
||
``` bash | ||
$ git rebase -i HEAD~3 | ||
``` | ||
|
||
If your branch conflicts with the master branch, you will need to rebase and repush it with the following commands: | ||
|
||
``` bash | ||
$ git remote add upstream [email protected]:php-http/repo-name.git | ||
$ git pull --rebase upstream master | ||
$ git push origin bug-fix-description -f | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Copyright (c) 2014-2015 Eric GELOEN <[email protected]> | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is furnished | ||
to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# Guzzle 5 Adapter | ||
|
||
[](https://github.com/php-http/guzzle5-adapter/releases) | ||
[](LICENSE) | ||
[](https://travis-ci.org/php-http/guzzle5-adapter) | ||
[](https://scrutinizer-ci.com/g/php-http/guzzle5-adapter) | ||
[](https://scrutinizer-ci.com/g/php-http/guzzle5-adapter) | ||
[](http://hhvm.h4cc.de/package/php-http/guzzle5-adapter) | ||
[](https://packagist.org/packages/php-http/guzzle5-adapter) | ||
|
||
**Guzzle 5 HTTP adapter.** | ||
|
||
|
||
## Install | ||
|
||
Via Composer | ||
|
||
``` bash | ||
$ composer require php-http/guzzle5-adapter | ||
``` | ||
|
||
|
||
## Usage | ||
|
||
|
||
## Testing | ||
|
||
``` bash | ||
$ phpunit | ||
``` | ||
|
||
|
||
## Contributing | ||
|
||
Please see [CONTRIBUTING](CONTRIBUTING.md) for details. | ||
|
||
|
||
## Security | ||
|
||
If you discover any security related issues, please contact us at [[email protected]](mailto:[email protected]). | ||
|
||
|
||
## License | ||
|
||
The MIT License (MIT). Please see [License File](LICENSE) for more information. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"name": "php-http/guzzle5-adapter", | ||
"description": "Guzzle 5 HTTP adapter", | ||
"license": "MIT", | ||
"keywords": ["guzzle", "http"], | ||
"homepage": "http://php-http.org", | ||
"authors": [ | ||
{ | ||
"name": "Eric GELOEN", | ||
"email": "[email protected]" | ||
} | ||
], | ||
"require": { | ||
"php": ">=5.4", | ||
"php-http/adapter-core": "dev-master" | ||
}, | ||
"require-dev": { | ||
"phpunit/phpunit": "~4.4" | ||
}, | ||
"provide": { | ||
"php-http/adapter-implementation": "0.1" | ||
}, | ||
"autoload": { | ||
"psr-4": { | ||
"Http\\Adapter\\": "src/" | ||
} | ||
}, | ||
"extra": { | ||
"branch-alias": { | ||
"dev-master": "0.1-dev" | ||
} | ||
}, | ||
"prefer-stable": true, | ||
"minimum-stability": "dev" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit colors="true" bootstrap="vendor/autoload.php"> | ||
<testsuites> | ||
<testsuite name="Guzzle 5 Adapter Test Suite"> | ||
<directory>tests/</directory> | ||
</testsuite> | ||
</testsuites> | ||
<filter> | ||
<whitelist> | ||
<directory suffix=".php">src/</directory> | ||
</whitelist> | ||
</filter> | ||
</phpunit> |