Abandoned
To our knowledge, this repository is unused. We keep it here in case it is useful for anyone, but the code is not maintained., (*1)
Stream wrapper
, (*2)
Convert uses of fopen and file_get_contents to HTTPlug requests., (*3)
Disclaimer
Warning 1: There is an increased risk for problems because of how deeply the stream wrapper touches into the PHP core. Internally we use stream_wrapper_unregister
and stream_wrapper_register
., (*4)
Warning 2: Instead of using the stream wrapper you should should try to port libraries to use Httplug for a more robust solution., (*5)
Install
Via Composer, (*6)
``` bash
$ composer require php-http/httplug-stream-wrapper, (*7)
## Documentation
```php
$httpClient = HttpClientDiscovery::find();
StreamWrapper::enable($httpClient);
Please see the official documentation., (*8)
Testing
Then the test suite:, (*9)
bash
$ composer test
, (*10)
Contributing
Please see our contributing guide., (*11)
Security
If you discover any security related issues, please contact us at security@php-http.org., (*12)
License
The MIT License (MIT). Please see License File for more information., (*13)