Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
This package has been abandoned.
Generated on May 8, 2024 via composer

guzzlehttp/ringphp 1.1.1

Provides a simple API and specification that abstracts away the details of HTTP into a single PHP function.
Package summary
Share
2
issues
2
high severity
meta
2
1
license
3
MIT
Package created
13 Oct 2014
Version published
31 Jul 2018
Maintainers
1
Total deps
3
Direct deps
2
License
MIT

Issues

2

2 high severity issues

high
via: guzzlehttp/ringphp@1.1.1
via: guzzlehttp/streams@3.0.0
Collapse
Expand

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:
guzzlehttp/ringphp@1.1.1
guzzlehttp/streams@3.0.0
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 guzzlehttp/ringphp 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
guzzlehttp/streams3.0.042.49 kBMIT
prod
1
react/promisev2.11.0-MIT
prod

Visualizations

Frequently Asked Questions

What does guzzlehttp/ringphp do?

Guzzlehttp/RingPHP is a sophisticated tool that provides a simplified API and specification to abstract HTTP specifics into a solitary function in PHP. Its primary role is to power HTTP clients and servers effectively through a PHP function, aiding both synchronous and asynchronous workflows. This is accomplished through a request hash that's accepted and a response hash returned, utilizing 'promise'. RingPHP's forte lies in abstracting the different HTTP clients and servers' implementation details, enabling the use of flexible HTTP clients and servers without committing your application to a particular implementation.

How do you use guzzlehttp/ringphp?

To use Guzzlehttp/RingPHP, a composer dependency is necessary to include in your project. Use the command 'composer require guzzlehttp/ringphp'. Once installed, you can integrate it into your PHP code. Here's a basic code example:

<?php
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();

This snippet creates a new cURL handler, sends a GET request to Google's homepage, and after receiving the response, it echoes the HTTP status.

Where are the guzzlehttp/ringphp docs?

The Guzzlehttp/RingPHP full documentation is available online at http://ringphp.readthedocs.org/. The comprehensive guide covers various aspects, from setup and configuration to different ways of leveraging the capabilities of RingPHP, providing essential details for both newbies and experienced developers alike.