PHP code example of tecsiaron / anaf-api-client-php

1. Go to this page and download the library: Download tecsiaron/anaf-api-client-php 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/ */

    

tecsiaron / anaf-api-client-php example snippets


composer 
phg
  
use EdituraEDU\ANAF\ANAFAPIClient;  
$Logger= function (string $message, ?Throwable $ex = null)  
{  
	echo $message;
	if($ex !== null)
	{
		echo $ex->getMessage();
	}
};  
$anaf = new ANAFAPIClient(ANAF_OAUTH,false, $Logger);  
var_dump($anaf->GetEntity("RO12345678"));