Skip to content

Instantly share code, notes, and snippets.

@itrack
Created November 16, 2019 09:21
Show Gist options
  • Save itrack/a2532c47d7d10cbf5bf0ee74f1dd163c to your computer and use it in GitHub Desktop.
Save itrack/a2532c47d7d10cbf5bf0ee74f1dd163c to your computer and use it in GitHub Desktop.
Exemplu Complet API Anaf
<?php
// 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();
print_r($raspuns);
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment