-
-
Notifications
You must be signed in to change notification settings - Fork 24
Guzzle Proxy
Guzzle is a PHP HTTP client that makes it simple to submit HTTP queries and integrates with online services with little effort.
- A user-friendly interface for constructing query strings, making POST requests, streaming massive uploads and downloads, using HTTP cookies, and uploading JSON data
- Utilizing the same interface, it is possible to submit synchronous as well as asynchronous queries.
- Requests, replies, and streams all make use of the PSR-7 interface standard. This enables you to
- To make use of additional libraries that are compatible with PSR-7 with Guzzle.
- Supports PSR-18, which enables compatibility with other HTTP clients that also support PSR-18.
- Hides the details of the underlying HTTP transport, making it possible for you to write
- Environment and transport agnostic code; i.e., no hard dependent on cURL.
- Streams, sockets, or non-blocking event loops may be implemented with PHP.
- The use of a middleware system gives you the ability to enhance and compose client behaviour.
$client = new \GuzzleHttp\Client();
$response = $client->request('GET', 'https://api.github.com/repos/guzzle/guzzle');
echo $response->getStatusCode(); // 200
echo $response->getHeaderLine('content-type'); // 'application/json; charset=utf8'
echo $response->getBody(); // '{"id": 1420053, "name": "guzzle", ...}'
// Send an asynchronous request.
$request = new \GuzzleHttp\Psr7\Request('GET', 'http://httpbin.org');
$promise = $client->sendAsync($request)->then(function ($response) {
echo 'I completed! ' . $response->getBody();
});
$promise->wait();
We use GitHub issues only to discuss bugs and new features. For support please refer to:
- Documentation
- Stack Overflow
- #guzzle channel on PHP-HTTP Slack
- Gitter
The recommended way to install Guzzle is through Composer.
composer require guzzlehttp/guzzle
Version | Status | Packagist | Namespace | Repo | Docs | PSR-7 | PHP Version |
---|---|---|---|---|---|---|---|
3.x | EOL | guzzle/guzzle |
Guzzle |
[v3][guzzle-3-repo] | [v3][guzzle-3-docs] | No | >=5.3.3,<7.0 |
4.x | EOL | guzzlehttp/guzzle |
GuzzleHttp |
[v4][guzzle-4-repo] | N/A | No | >=5.4,<7.0 |
5.x | EOL | guzzlehttp/guzzle |
GuzzleHttp |
[v5][guzzle-5-repo] | [v5][guzzle-5-docs] | No | >=5.4,<7.4 |
6.x | Security fixes | guzzlehttp/guzzle |
GuzzleHttp |
[v6][guzzle-6-repo] | [v6][guzzle-6-docs] | Yes | >=5.5,<8.0 |
7.x | Latest | guzzlehttp/guzzle |
GuzzleHttp |
[v7][guzzle-7-repo] | [v7][guzzle-7-docs] | Yes | >=7.2.5,<8.2 |
If you notice a vulnerability in this package, please inform us about it by sending an email to the address [email protected]. Thank you in advance for your assistance. It is planned to take prompt action to address any and all security flaws that have been identified. Make a request that any information about security issues not be made public until there is a fix available for it.
The Guzzle source code will be distributed under the terms of the MIT License (MIT). Please refer to the [License File] for more information. Thank you for your cooperation (LICENSE).
Tidelift is collaborating with the people who are responsible for Guzzle and hundreds of other packages in order to provide commercial support and maintenance for the open source dependencies that are required in order to build applications. The development of apps requires the usage of certain dependencies. Time is saved, risks are reduced, and an overall improvement in the quality of the code is made, all while the maintainers of the specific dependencies that are utilised get reimbursed for their work.
yxorP Stateful SAAS(y), Multi-tenancy Proxy Guzzler + Backend (GUI) included, PHP CURL+Composer are Optional
π’ [ ARCHITECTURE ] β‘ [ DEVELOPERS ] π [ DOCUMENTATION ] π₯ [ MAKING VIDEO ] π [ WEBSITE ] ποΈ