A lightweight PHP library for issuing HTTP requests with multiple client implementations including cURL and file_get_contents.
Buzz is a lightweight PHP HTTP client library designed for simplicity and performance. It provides an easy-to-use interface for making HTTP requests, covering common use cases without unnecessary complexity. The library includes multiple client implementations like FileGetContents, Curl, and MultiCurl to suit different server environments.
PHP developers who need a straightforward, standards-compliant HTTP client for typical web requests, such as those integrating with APIs or fetching web resources. It's particularly suitable for projects prioritizing minimal dependencies and adherence to PSR standards.
Developers choose Buzz for its lightweight codebase (under 1000 lines), full compliance with PSR-7, PSR-17, and PSR-18 standards, and performance features like HTTP/2 server push support. It offers a simple API that mimics browser behavior, making it easier to test and use compared to more complex alternatives.
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 minimizes overhead and is easy to maintain, as emphasized in the README for performance and simplicity.
Fully adheres to PSR-7, PSR-17, and PSR-18, ensuring interoperability with other PHP libraries that follow these standards, as highlighted in the features.
Includes FileGetContents, Curl, and MultiCurl clients, allowing adaptation to different server environments, as noted in the key features for varied use cases.
MultiCurl client supports HTTP/2 server push and batch requests, improving efficiency for concurrent operations, with examples provided in the README.
Designed to cover only 90% of use cases, so it lacks advanced functionalities like built-in retry mechanisms or comprehensive logging, as admitted in the philosophy.
The README states there are no plans to actively develop new features, which could be a risk for projects needing future updates or community support.
Requires an external PSR-17 factory to be installed separately, adding complexity to setup compared to all-in-one clients, as shown in the installation instructions.
Buzz is an open-source alternative to the following products: