All Projects → guzzle → Guzzle

guzzle / Guzzle

Licence: mit
Guzzle, an extensible PHP HTTP client

Programming Languages

PHP
23972 projects - #3 most used programming language
javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Guzzle

Libhv
🔥 比libevent、libuv更易用的国产网络库。A c/c++ network library for developing TCP/UDP/SSL/HTTP/WebSocket client/server.
Stars: ✭ 3,355 (-84.31%)
Mutual labels:  http-client, requests, curl
Requester
Powerful, modern HTTP/REST client built on top of the Requests library
Stars: ✭ 273 (-98.72%)
Mutual labels:  http-client, curl, requests
curly.hpp
Simple cURL C++17 wrapper
Stars: ✭ 48 (-99.78%)
Mutual labels:  curl, http-client, requests
Yurunhttp
YurunHttp 是开源的 PHP HTTP 客户端,支持链式操作,简单易用。完美支持Curl、Swoole 协程。QQ群:17916227
Stars: ✭ 197 (-99.08%)
Mutual labels:  curl, httpclient, guzzle
Restclient
🦄 Simple HTTP and REST client for Unity based on Promises, also supports Callbacks! 🎮
Stars: ✭ 675 (-96.84%)
Mutual labels:  http-client, requests, httpclient
Urllib
Request HTTP(s) URLs in a complex world
Stars: ✭ 600 (-97.19%)
Mutual labels:  http-client, curl, httpclient
Php Curl Class
PHP Curl Class makes it easy to send HTTP requests and integrate with web APIs
Stars: ✭ 2,903 (-86.42%)
Mutual labels:  http-client, curl, requests
Curlsharp
CurlSharp - .Net binding and object-oriented wrapper for libcurl.
Stars: ✭ 153 (-99.28%)
Mutual labels:  http-client, curl, httpclient
php-curl-cookbook
PHP CURL Cookbook 📖
Stars: ✭ 83 (-99.61%)
Mutual labels:  curl, guzzle, http-client
SimplecURL
Easy to use HTTP Client for PHP
Stars: ✭ 14 (-99.93%)
Mutual labels:  curl, http-client
go-axios
HTTP Request package for golang.
Stars: ✭ 29 (-99.86%)
Mutual labels:  curl, http-client
The-PHP-Workshop
A New, Interactive Approach to Learning PHP
Stars: ✭ 30 (-99.86%)
Mutual labels:  guzzle, webservices
RESTEasy
REST API calls made easier
Stars: ✭ 12 (-99.94%)
Mutual labels:  http-client, requests
diciotto
✈️ A no-nonsense PHP Http client focused on DX (PSR 18 compliant)
Stars: ✭ 23 (-99.89%)
Mutual labels:  curl, http-client
WebTechnologies
CRAN Task View: WebTechnologies
Stars: ✭ 163 (-99.24%)
Mutual labels:  curl, webservices
Curio
A Blazing Fast HTTP Client
Stars: ✭ 35 (-99.84%)
Mutual labels:  http-client, httpclient
request-extra
⚡️ Extremely stable HTTP request module built on top of libcurl with retries, timeouts and callback API
Stars: ✭ 14 (-99.93%)
Mutual labels:  curl, http-client
axios-for-observable
A RxJS wrapper for axios, same api as axios absolutely
Stars: ✭ 13 (-99.94%)
Mutual labels:  http-client, requests
Node Request Retry
💂 Wrap NodeJS request module to retry http requests in case of errors
Stars: ✭ 330 (-98.46%)
Mutual labels:  http-client, requests
Kurly
kurly is an alternative to the widely popular curl program, written in Golang.
Stars: ✭ 319 (-98.51%)
Mutual labels:  http-client, curl

Guzzle

Guzzle, PHP HTTP client

Latest Version Build Status Total Downloads

Guzzle is a PHP HTTP client that makes it easy to send HTTP requests and trivial to integrate with web services.

  • Simple interface for building query strings, POST requests, streaming large uploads, streaming large downloads, using HTTP cookies, uploading JSON data, etc...
  • Can send both synchronous and asynchronous requests using the same interface.
  • Uses PSR-7 interfaces for requests, responses, and streams. This allows you to utilize other PSR-7 compatible libraries with Guzzle.
  • Supports PSR-18 allowing interoperability between other PSR-18 HTTP Clients.
  • Abstracts away the underlying HTTP transport, allowing you to write environment and transport agnostic code; i.e., no hard dependency on cURL, PHP streams, sockets, or non-blocking event loops.
  • Middleware system allows you to augment and compose client behavior.
$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();

Help and docs

We use GitHub issues only to discuss bugs and new features. For support please refer to:

Installing Guzzle

The recommended way to install Guzzle is through Composer.

composer require guzzlehttp/guzzle

Version Guidance

Version Status Packagist Namespace Repo Docs PSR-7 PHP Version
3.x EOL guzzle/guzzle Guzzle v3 v3 No >= 5.3.3
4.x EOL guzzlehttp/guzzle GuzzleHttp v4 N/A No >= 5.4
5.x EOL guzzlehttp/guzzle GuzzleHttp v5 v5 No >= 5.4
6.x Security fixes guzzlehttp/guzzle GuzzleHttp v6 v6 Yes >= 5.5
7.x Latest guzzlehttp/guzzle GuzzleHttp v7 v7 Yes >= 7.2

Security

If you discover a security vulnerability within this package, please send an email to [email protected]. All security vulnerabilities will be promptly addressed. Please do not disclose security-related issues publicly until a fix has been announced. Please see Security Policy for more information.

License

Guzzle is made available under the MIT License (MIT). Please see License File for more information.

For Enterprise

Available as part of the Tidelift Subscription

The maintainers of Guzzle and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. Learn more.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].