Skip to content
This repository has been archived by the owner on Jan 6, 2024. It is now read-only.

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
sagikazarmark committed May 3, 2015
0 parents commit ae43658
Show file tree
Hide file tree
Showing 11 changed files with 252 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .editorconfig
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
8 changes: 8 additions & 0 deletions .gitattributes
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
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/build
/vendor
/composer.lock
/phpunit.xml
8 changes: 8 additions & 0 deletions .scrutinizer.yml
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'
29 changes: 29 additions & 0 deletions .travis.yml
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
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Change Log


## Unreleased
74 changes: 74 additions & 0 deletions CONTRIBUTING.md
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
```
19 changes: 19 additions & 0 deletions LICENSE
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.
45 changes: 45 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# Guzzle 5 Adapter

[![Latest Version](https://img.shields.io/github/release/php-http/guzzle5-adapter.svg?style=flat-square)](https://github.com/php-http/guzzle5-adapter/releases)
[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE)
[![Build Status](https://img.shields.io/travis/php-http/guzzle5-adapter.svg?style=flat-square)](https://travis-ci.org/php-http/guzzle5-adapter)
[![Code Coverage](https://img.shields.io/scrutinizer/coverage/g/php-http/guzzle5-adapter.svg?style=flat-square)](https://scrutinizer-ci.com/g/php-http/guzzle5-adapter)
[![Quality Score](https://img.shields.io/scrutinizer/g/php-http/guzzle5-adapter.svg?style=flat-square)](https://scrutinizer-ci.com/g/php-http/guzzle5-adapter)
[![HHVM Status](https://img.shields.io/hhvm/php-http/guzzle5-adapter.svg?style=flat-square)](http://hhvm.h4cc.de/package/php-http/guzzle5-adapter)
[![Total Downloads](https://img.shields.io/packagist/dt/php-http/guzzle5-adapter.svg?style=flat-square)](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.
35 changes: 35 additions & 0 deletions composer.json
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"
}
13 changes: 13 additions & 0 deletions phpunit.xml.dist
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>

0 comments on commit ae43658

Please sign in to comment.