PHP code example of insologystudio / fatture-in-cloud
1. Go to this page and download the library: Download insologystudio/fatture-in-cloud 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/ */
insologystudio / fatture-in-cloud example snippets
namespace App\Http\Controllers;
use FattureInCloud\Model\ListClientsResponse;
use InsologyStudio\FattureInCloud\FattureInCloud;
class ClientController extends Controller
{
/**
* @param FattureInCloud $fattureInCloud
* @return ListClientsResponse
* @throws \FattureInCloud\ApiException
*/
public function index(FattureInCloud $fattureInCloud): ListClientsResponse
{
$companyId = config('fatture-in-cloud.company_id');
$clients = $fattureInCloud->clients()->listClients($companyId);
return $clients;
}
}