PHP code example of chiefgroup / laravel-guzzle

1. Go to this page and download the library: Download chiefgroup/laravel-guzzle library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

chiefgroup / laravel-guzzle example snippets


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

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

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

    dd($result);


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