A lightweight PHP HTTP client library with multiple client backends and PSR compliance.
Buzz is a lightweight PHP library for issuing HTTP requests, designed to be simple and cover 90% of common use cases. It provides multiple client backends like FileGetContents, Curl, and MultiCurl, with support for HTTP/2 server push and batch requests. The library emphasizes PSR compliance and minimal code, making it a straightforward alternative to more complex HTTP clients.
PHP developers needing a simple, reliable HTTP client for everyday tasks like API calls, web scraping, or testing, without the overhead of larger libraries. It's ideal for projects where lightweight dependencies and PSR standards are priorities.
Developers choose Buzz for its simplicity, PSR compliance, and lightweight design—it's under 1000 lines of code and mimics browser behavior for easy testing. Unlike heavier clients, it focuses on covering common use cases efficiently without unnecessary features.
PHP's lightweight HTTP client
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
With under 1000 lines of code, Buzz is easy to audit and maintain, focusing on core functionality without bloat, as emphasized in the README.
Adheres to PSR-7, PSR-17, and PSR-18 standards, ensuring seamless interoperability with other PHP libraries and frameworks, which is a key selling point.
Includes FileGetContents, Curl, and MultiCurl clients, allowing developers to choose based on server capabilities and performance needs for different environments.
The MultiCurl client supports HTTP/2 server push and batch requests, enabling efficient handling of concurrent HTTP operations, as demonstrated in the code examples.
Requires installation of a separate PSR-17 factory from Packagist, adding an extra step and dependency compared to all-in-one HTTP clients.
The README states 'no plans to actively develop new features,' which may limit adoption of future HTTP standards or improvements over time.
Enabling HTTP/2 server push requires specific PHP and cUrl versions, as noted in the test instructions, making it less accessible for average setups.
Buzz is an open-source alternative to the following products: