Download the PHP package aedart/athenaeum-http-clients without Composer
On this page you can find all versions of the php package aedart/athenaeum-http-clients. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download aedart/athenaeum-http-clients
More information about aedart/athenaeum-http-clients
Files in aedart/athenaeum-http-clients
Package athenaeum-http-clients
Short Description Http Client wrapper along with a Manager that is able to handle multiple client instances (profiles)
License BSD-3-Clause
Homepage https://aedart.github.io/athenaeum/
Informations about the package athenaeum-http-clients
Athenaeum Http Clients
This package offers a Http Client wrapper, with a powerful fluent request builder that is able to use different Http Query grammars, supporting both Json Api and OData. In addition, it also comes with a manager that allows you to handle multiple http client "profiles". This allows you to segment each api you communicate with, into it's own client instance.
Guzzle Http Client is used behind the scene.
Example
Configuration
Usage
Motivation
A Http Client "package" was made available in version 3.x of the Athenaeum library. It offered the manager to handle multiple "profiles" and some fluent methods for gradually building a request. But it was not as comprehensive as the current version. When Laravel released it's v7.x version, it came with a custom Http Client. Therefore, this package became somewhat irrelevant and was considered for deprecation. Ultimately, I decided to redesign this package entirely, mixing some of the already provided features with lots of new ones.
As a result, this package now draws inspiration from both Laravel's Http Client, as well as the Database Query Builder. You will find many similarities between the client offered by Laravel, and the one provided by this package. The intent isn't to copy Laravel's Http Client, but rather to provide a slightly different approach on request building.
When considering whether to use this Http Client, Laravel's or other Http Client, then it's probably best to stick with what you feel most comfortable with. To put a different perspective on this matter, consider that Laravel has a far better support for their packages, than I can currently offer.
Documentation
Please read the official documentation for additional information.
Repository
The mono repository is located at github.com/aedart/athenaeum
Versioning
This package follows Semantic Versioning 2.0.0
License
BSD-3-Clause, Read the LICENSE file included in this package
All versions of athenaeum-http-clients with dependencies
aedart/athenaeum-container Version ^8.17
aedart/athenaeum-contracts Version ^8.17
aedart/athenaeum-http-cookies Version ^8.17
aedart/athenaeum-http-messages Version ^8.17
aedart/athenaeum-support Version ^8.17
guzzlehttp/guzzle Version ^7.9.2
illuminate/pipeline Version ^v11.35.0
psr/http-client Version ^1.0.3
psr/http-factory Version ^1.1.0
psr/http-message Version ^1.1
shrikeh/teapot Version ^2.3.1