Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Generated on May 16, 2024 via composer

ezimuel/ringphp 1.2.2

Fork of guzzle/RingPHP (abandoned) to be used with elasticsearch-php
Package summary
Share
0
issues
1
license
3
MIT
Package created
14 Feb 2020
Version published
7 Dec 2022
Maintainers
1
Total deps
3
Direct deps
2
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
3 Packages, Including:
ezimuel/guzzlestreams@3.1.0
ezimuel/ringphp@1.2.2
react/promise@v2.11.0
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

2
All Dependencies CSV
β“˜ This is a list of ezimuel/ringphp 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
ezimuel/guzzlestreams3.1.044.15 kBMIT
prod
react/promisev2.11.0-MIT
prod

Visualizations

Frequently Asked Questions

What does ezimuel/ringphp do?

Ezimuel/RingPHP is a PHP-based tool that simplifies the handling of HTTP operations. It primarily abstracts the complexities of HTTP into a single PHP function, providing a streamlined API for working with HTTP requests. A fork of the original Guzzle/RingPHP project, it provides support for both synchronous and asynchronous workflows through PHP promises. Ezimuel/RingPHP may power HTTP clients and servers which make it flexible for HTTP operations without restricting your application to a specific implementation.

How do you use ezimuel/ringphp?

Using Ezimuel/RingPHP starts by including its necessary library using the autoload in the vendor directory. A CurlHandler is then instantiated to handle the HTTP requests and responses. Here's a basic example of how you may use it:

require 'vendor/autoload.php';

use GuzzleHttp\Ring\Client\CurlHandler;

$handler = new CurlHandler();
$response = $handler([
    'http_method' => 'GET',
    'uri'         => '/',
    'headers'     => [
        'host'  => ['www.google.com'],
        'x-foo' => ['baz']
    ]
]);

$response->then(function (array $response) {
    echo $response['status'];
});

$response->wait();

In this code, an HTTP GET request is sent to 'www.google.com' with the header 'x-foo' set to 'baz'. The response is then displayed.

Where are the ezimuel/ringphp docs?

For a detailed documentation on how to maximise the use of Ezimuel/RingPHP, it is provided at https://ringphp.readthedocs.io/en/latest/. This comprehensive guide contains everything you need to know about the tool, from installation to utilization for your specific application needs, all presented in a reader-friendly and comprehensible manner.