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
Generated on May 18, 2024 via composer

rmccue/requests v2.0.10

A HTTP library written in PHP, for human beings.
Package summary
Share
0
issues
1
license
1
ISC
Package created
8 Feb 2012
Version published
8 Jan 2024
Maintainers
3
Total deps
1
Direct deps
0
License
ISC

Issues

0
This package has no issues

Licenses

ISC License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
rmccue/requests@v2.0.10
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

0
All Dependencies CSV
β“˜ This is a list of rmccue/requests 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does rmccue/requests do?

The rmccue/requests is a robust HTTP library implemented in PHP designed for user-friendliness. It's inspired by the API of the popular Requests Python library and is ideal for developers looking to leverage tools for sending HTTP requests. This library comes with a plethora of advantageous features such as support for international domains and URLs, browser-style SSL verification, connection timeouts, and automatic decompression.

How do you use rmccue/requests?

To use the rmccue/requests library, you first have to install it through composer, GitHub source, or by fetching a zip/tarball from GitHub. Here's the composer installation command:

composer require rmccue/requests

After installation, you can start using the library in your scripts, as illustrated in the example below:

$headers = array('Accept' => 'application/json');
$options = array('auth' => array('user', 'pass'));
$request = WpOrg\Requests\Requests::get('https://api.github.com/gists', $headers, $options);

var_dump($request->status_code);
// int(200)

var_dump($request->headers['content-type']);
// string(31) "application/json; charset=utf-8"

var_dump($request->body);
// string(26891) "[...]"

This code makes a GET request to a specified URL, with headers and options defined in arrays. The status code, headers, and body data from the response can then be accessed easily.

Where are the rmccue/requests docs?

Looking for comprehensive documentation for the rmccue/requests library? You can find it on the official GitHub repository.
Start with the prose-based documentation that guides you on how to use Requests. For in-depth insights, check out the documentation for \WpOrg\Requests\Requests::request() where all the parameters are extensively explained. Moreover, Requests is fully documented with PHPDoc. In case of any issues, you can raise it on their GitHub issue page.