PHP code example of prettus / tinyerp-client

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

    

prettus / tinyerp-client example snippets


$client = new Client('token');

$retorno = $client->info()->get();
$entity = $retorno->data();
echo $entity->razao_social;

$retorno = $client->produto()->retrieve(349112581);
$entity = $retorno->data();
echo $entity->nome;