Skip to content

Commit

Permalink
Merge pull request #25 from PhpGt/16-psr7
Browse files Browse the repository at this point in the history
16 psr7
  • Loading branch information
g105b authored Oct 26, 2018
2 parents 67165fe + 46ae8dc commit 4e53a8d
Show file tree
Hide file tree
Showing 29 changed files with 1,101 additions and 1,098 deletions.
33 changes: 33 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
version: 2

jobs:
build:
docker:
- image: circleci/php:7.1-cli

working_directory: ~/repo

steps:
- checkout

- restore_cache:
keys:
- v1-dependencies-{{ checksum "composer.json" }}
- v1-dependencies-

- run: composer install -n --prefer-dist

- save_cache:
paths:
- ./vendor
key: v1-dependencies-{{ checksum "composer.json" }}

- run: mkdir test/unit/_junit
- run: vendor/bin/phpunit -c test/unit/phpunit.xml --log-junit test/unit/_junit/junit.xml -d memory_limit=512M

- store_test_results:
path: test/unit/_junit

- store_artifacts:
path: test/unit/_coverage
destination: TestCoverage
16 changes: 8 additions & 8 deletions .scrutinizer.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
build:
environment:
php:
version: 7.0.8
version: 7.1.0
tests:
override:
-
command: 'vendor/bin/phpunit --coverage-clover=coverage'
coverage:
file: 'coverage'
format: 'php-clover'
-
command: 'vendor/bin/phpunit test/unit --coverage-clover coverage --whitelist src'
coverage:
file: 'coverage'
format: 'php-clover'

checks:
php:
Expand All @@ -17,5 +17,5 @@ checks:

filter:
excluded_paths:
- test/*
- vendor/*
- test/*
- vendor/*
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,19 @@ See also, the [JavaScript implementation][fetch-js] that ships as standard in al
***

<a href="https://circleci.com/gh/PhpGt/Fetch" target="_blank">
<img src="https://img.shields.io/circleci/project/PhpGt/Fetch/master.svg?style=flat-square" alt="Build status" />
<img src="https://badge.php.gt/fetch-build.svg" alt="Build status" />
</a>
<a href="https://scrutinizer-ci.com/g/PhpGt/Fetch" target="_blank">
<img src="https://img.shields.io/scrutinizer/g/PhpGt/Fetch/master.svg?style=flat-square" alt="Code quality" />
<img src="https://badge.php.gt/fetch-quality.svg" alt="Code quality" />
</a>
<a href="https://scrutinizer-ci.com/g/PhpGt/Fetch" target="_blank">
<img src="https://img.shields.io/scrutinizer/coverage/g/PhpGt/Fetch/master.svg?style=flat-square" alt="Code coverage" />
<img src="https://badge.php.gt/fetch-coverage.svg" alt="Code coverage" />
</a>
<a href="https://packagist.org/packages/PhpGt/Fetch" target="_blank">
<img src="https://img.shields.io/packagist/v/PhpGt/Fetch.svg?style=flat-square" alt="Current version" />
<img src="https://badge.php.gt/fetch-version.svg" alt="Current version" />
</a>
<a href="https://www.php.gt/fetch" target="_blank">
<img src="https://badge.php.gt/fetch-docs.svg" alt="PHP.Gt/Fetch documentation" />
</a>

## Example usage: compute multiple HTTP requests in parallel.
Expand Down
11 changes: 0 additions & 11 deletions circle.yml

This file was deleted.

104 changes: 62 additions & 42 deletions composer.json
Original file line number Diff line number Diff line change
@@ -1,44 +1,64 @@
{
"name": "phpgt/fetch",
"description": "Asynchronous HTTP client with promises.",
"type": "library",

"require": {
"php": ">=7.1",
"react/event-loop": "^1.0.0",
"react/promise": "^2.4",
"phpcurl/curlwrapper": "^2.1",
"react/stream": "^0.4.4"
},
"require-dev": {
"phpunit/phpunit": "5.*|7.*"
},

"license": "MIT",

"authors": [
{
"name": "Greg Bowler",
"email": "[email protected]"
}
],

"autoload": {
"psr-4": {
"Gt\\Fetch\\": "./src"
}
},

"keywords": [
"http",
"fetch",
"async",
"asynchronous",
"xmlhttprequest",
"ajax",
"get",
"post",
"curl",
"curl_multi"
]
"name": "phpgt/fetch",
"description": "Asynchronous HTTP client with promises for PHP 7 applications.",
"type": "library",
"license": "MIT",

"minimum-stability": "dev",

"provide": {
"php-http/client-implementation": "1.0",
"php-http/async-client-implementation": "1.0"
},

"require": {
"php": ">=7.1.0",
"ext-curl": "*",
"ext-json": "*",
"phpgt/http": "dev-master",
"phpgt/curl": "dev-master",

"php-http/httplug": "^1.1",
"php-http/promise": "^1.0.0",

"react/event-loop": "^1.0.0",
"react/stream": "^1.0.0",
"react/promise": "^2.7.0"
},

"require-dev": {
"phpunit/phpunit": "7.*"
},

"autoload": {
"psr-4": {
"Gt\\Fetch\\": "./src"
}
},

"autoload-dev": {
"psr-4": {
"Gt\\Fetch\\Test\\": "./test/unit"
}
},

"authors": [
{
"name": "Greg Bowler",
"email": "[email protected]"
}
],

"keywords": [
"http",
"fetch",
"async",
"asynchronous",
"xmlhttprequest",
"ajax",
"get",
"post",
"curl",
"curl_multi"
]
}
Loading

0 comments on commit 4e53a8d

Please sign in to comment.