Created
November 16, 2019 09:21
-
-
Save itrack/a2532c47d7d10cbf5bf0ee74f1dd163c to your computer and use it in GitHub Desktop.
Exemplu Complet API Anaf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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