jtelesforoantonio/laravel-guzzle-api

Integration of guzzle http client in laravel for API requests


Keywords
http client, api, Guzzle, web services, laravel, RESTful API
License
MIT

Documentation

Laravel Guzzle API

Total Downloads License

This package provides a quickly integration of Guzzle and Guzzle Services with Laravel to consuming web services.

Installation

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.

Usage

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();