Skip to content
This repository has been archived by the owner on Sep 21, 2020. It is now read-only.

php-http/httplug-stream-wrapper

Repository files navigation

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.

Stream wrapper

Latest Version Software License Build Status Code Coverage Quality Score Total Downloads

Convert uses of fopen and file_get_contents to HTTPlug requests.

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.

Warning 2: Instead of using the stream wrapper you should should try to port libraries to use Httplug for a more robust solution.

Install

Via Composer

$ composer require php-http/httplug-stream-wrapper

Documentation

$httpClient = HttpClientDiscovery::find();
StreamWrapper::enable($httpClient);

Please see the official documentation.

Testing

Then the test suite:

$ composer test

Contributing

Please see our contributing guide.

Security

If you discover any security related issues, please contact us at [email protected].

License

The MIT License (MIT). Please see License File for more information.

About

No description, website, or topics provided.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages