PHP code example of rap2hpoutre / jacky

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

    

rap2hpoutre / jacky example snippets


Rap2hpoutre\Jacky\ServiceProvider::class,

'Jacky' => Rap2hpoutre\Jacky\Facade::class,

$user_name = Jacky::get('foo', '/users/1')->data->first()->name;

use Rap2hpoutre\Jacky\Exception\Http404Exception;

try {
    $user = Jacky::get('foo', '/users/1');
} catch (Http404Exception $e) {
    echo $e->errors->first()->title;
}


php artisan vendor:publish