This package provides a quickly integration of Guzzle and Guzzle Services with Laravel to consuming web services.
Install the package with Composer.
composer require jtelesforoantonio/laravel-guzzle-api
Laravel 5.5+ uses Package Auto Discovery and you don't need to add the Service Provider manually.
Once installed you need to run the following command to publish the config file this file is the core to create the client and to integrate with web services.
php artisan vendor:publish --tag=laravel-guzzle-api-config
To call yours requests use the Facade.
use JTelesforoAntonio\LaravelGuzzleApi\Api;
$response = Api::myRequest();
Or using the helper function.
$response = api()->myRequest();