PHP code example of slothws / syrve-api

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

    

slothws / syrve-api example snippets




use Sloth\SyrveApi\Syrve;

$syrve = new Syrve([
    'uri' => 'https://test.com/resto/api/',
    'login' => 'test',
    'password' => 'test'
]);

$response = $syrve->employees->list();