Skip to content

jtelesforoantonio/laravel-guzzle-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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