Skip to content

Instantly share code, notes, and snippets.

View itrack's full-sized avatar
:atom:
Hello

Alex Stoica itrack

:atom:
Hello
View GitHub Profile
@itrack
itrack / exemplu_api_anaf.php
Created November 16, 2019 09:21
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
<?php
$cui = "RO34559148";
$dataVerificare = "2017-12-31"; // * Data la care vrei informatiile
$anaf->addCui($cui, $dataVerificare);
$rezultat = $anaf->getOneResult();
print_r($rezultat);