PHP code example of woenel / laravesta

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

    

woenel / laravesta example snippets


$ php artisan vendor:publish --provider="Woenel\Laravesta\LaravestaServiceProvider"

use Laravesta;

$res = Laravesta::execute('v-list-user', [
    'arg1' => 'user01', // username
    'arg2' => 'json'    // format
]);

return json_decode($res->getData(), true);