1
- # clue/packagist-api-react [ ![ Build Status] ( https://travis-ci.org/clue/php -packagist-api-react .svg?branch=master )] ( https://travis-ci.org/clue/php -packagist-api-react )
1
+ # clue/reactphp- packagist-api [ ![ Build Status] ( https://travis-ci.org/clue/reactphp -packagist-api.svg?branch=master )] ( https://travis-ci.org/clue/reactphp -packagist-api )
2
2
3
- Simple async access to packagist.org's API, like listing project details, number of downloads, etc.
3
+ Simple async access to packagist.org's API, like listing project details, number of downloads etc.,
4
+ built on top of [ ReactPHP] ( https://reactphp.org/ ) .
4
5
5
6
This is an async version of [ KnpLab's excellent ` packagist-api ` ] ( https://github.com/KnpLabs/packagist-api ) ,
6
- but built upon [ React PHP 's non-blocking ` event-loop ` ] ( https://github.com/reactphp/event-loop ) .
7
- It uses the [ async HTTP client library ` buzz-react ` ] ( https://github.com/clue/php -buzz-react ) to process
7
+ but built upon [ ReactPHP 's non-blocking ` event-loop ` ] ( https://github.com/reactphp/event-loop ) .
8
+ It uses the [ async HTTP client library ` clue/reactphp-buzz ` ] ( https://github.com/clue/reactphp -buzz ) to process
8
9
any number of requests in parallel.
9
-
10
10
In a nutshell, it allows you to issue multiple requests to the packagist API in parallel and process them out of order
11
11
whenever their results arrive - while trying to hide all the nifty details of async processing.
12
12
On top of that it provides a very easy to use API, very much similar to the original ` packagist-api ` ,
13
- enriched with the comfort of [ React PHP 's Promises/A ] ( https://github.com/reactphp/promise ) .
13
+ enriched with the comfort of [ ReactPHP 's Promises] ( https://github.com/reactphp/promise ) .
14
14
15
15
** Table of Contents**
16
16
@@ -52,7 +52,7 @@ See also the [examples](examples).
52
52
### Client
53
53
54
54
The ` Client ` is responsible for assembling and sending HTTP requests to the remote Packagist API.
55
- It requires a [ ` Browser ` ] ( https://github.com/clue/php -buzz-react #browser ) object
55
+ It requires a [ ` Browser ` ] ( https://github.com/clue/reactphp -buzz#browser ) object
56
56
bound to the main [ ` EventLoop ` ] ( https://github.com/reactphp/event-loop#usage )
57
57
in order to handle async requests:
58
58
@@ -64,7 +64,7 @@ $client = new Client($browser);
64
64
```
65
65
66
66
If you need custom DNS, SSL/TLS or proxy settings, you can explicitly pass a
67
- custom [ ` Browser ` ] ( https://github.com/clue/php -buzz-react #browser ) instance.
67
+ custom [ ` Browser ` ] ( https://github.com/clue/reactphp -buzz#browser ) instance.
68
68
69
69
#### Promises
70
70
0 commit comments