Fluent Api

In similar fashion to Laravel's Http Clientopen in new window, you can chain methods together and thereby gradually build your request.

$response = $client
        ->select('name', 'person')
        ->where('age', 'gt', 26)
        ->orderBy('age', 'desc')
        ->from('/users')
        ->get();

Throughout this chapter, the various available methods are briefly explored.