PHP code example of rohiri / laraguzz

1. Go to this page and download the library: Download rohiri/laraguzz 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/ */

    

rohiri / laraguzz example snippets


    ...
    'providers' => [

        /*
         * Laravel Framework Service Providers...
         */
        ...

        /*
         * Application Service Providers...
         */
        ...
        'Rohiri\Guzzle\Providers\Guzzle'
    ],

    ...
    'aliases' => [
        ...
        'Guzzle' => 'Rohiri\Guzzle\Facades\Guzzle'
    ],


  $respuesta = \Guzzle::get('https://youtube.com');

$response = Guzzle::post(
    'https://my.app/test',
    [
        'form_params' => [
            'user' => pepito,
            'pass' => 1
        ]
    ]
);