chiefgroup/laravel-guzzle

Chiefgroup Laravel Interface API Use

2.0.2 2023-02-07 08:45 UTC

This package is auto-updated.

Last update: 2024-04-07 11:38:42 UTC


README

安装

$ composer require chiefgroup/laravel-guzzle

配置文件

generate config file

$ php artisan vendor:publish --provider="Chiefgroup\Http\Providers\ServiceProvider"

使用

    
    // Method : get\put\post\patch\delete

    $result = LaravelGuzzleHttp::get('api/users');

    $data = $headers = [];
    LaravelGuzzleHttp::post('http://xxx.com', $data, $headers);

    dd($result);

License

The MIT License (MIT). Please see License File for more information.