Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Exemplu Complet API Anaf
// Dupa ce ai executat comanda "composer require itrack/anaf" in consola,
// in folderul in care ai executat-o vei adauga acest fisier php
require_once(__DIR__ . '/vendor/autoload.php');
$anaf = new \Itrack\Anaf\Client();
$cui = "123456"; // Cui-ul societatii
$dataVerificare = "2019-05-20"; // Data la care vrei sa faci verificarea, daca vrei sa faci
// verificarea azi poti pune null sau poti sterge variabila (si din metoda de mai jos)
$anaf->addCui($cui, $dataVerificare);
$raspuns = $anaf->getOneResult();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment