The Zttp Guzzle wrapper package by Adam Wathan will be coming to Laravel 7 as a new Http package. According to the pull request to add this feature, it provides a much nicer syntax for the 90% use case of Guzzle where you just need to POST some JSON to an endpoint.
Here is some of the basic usage of the new Http package:
1use Illuminate\Support\Facades\Http;23$response = Http::post('url', [4 'name' => 'Taylor',5]);67echo $response['foo'];89$response->body()10$response->json()11$response->status()12$response->ok()13$response->successful() (>= 200 && < 300)14$response->serverError()15$response->clientError()
It’s also worth noting that in the PR Taylor says, this is not an entirely new client – it is only a UX / DX convenience layer on top of Guzzle. They will not be adding a lot of complicated features, and if you need something more, just use Guzzle directly.