You signed in with another tab or window.Reload to refresh your session.You signed out in another tab or window.Reload to refresh your session.You switched accounts on another tab or window.Reload to refresh your session.Dismiss alert
$cif ="123456";$dataVerificare ="2019-05-20";$anaf->addCif($cif,$dataVerificare);$company =$anaf->first();// Metode disponibileecho$company->getName();echo$company->getCIF();echo$company->getRegCom();echo$company->getPhone();echo$company->getFullAddress();echo$company->getAddress()->getCity();echo$company->getAddress()->getCounty();echo$company->getAddress()->getStreet();echo$company->getAddress()->getStreetNumber();echo$company->getAddress()->getPostalCode();echo$company->getAddress()->getOthers();echo$company->getTVA()->hasTVA();echo$company->getTVA()->getTVAEnrollDate();echo$company->getTVA()->getTVAEndDate();echo$company->getTVA()->hasTVACollection();echo$company->getTVA()->getTVACollectionEnrollDate();echo$company->getTVA()->getTVACollectionEndDate();echo$company->getTVA()->hasTVASplit();echo$company->getTVA()->getTVASplitEnrollDate();echo$company->getTVA()->getTVASplitEndDate();echo$company->getTVA()->getTVASplitIBAN();echo$company->getReactivationDate();echo$company->getInactivationDate();echo$company->getDeletionDate();echo$company->isActive();
Pentru a verifica mai multe CUI-uri in acelasi timp urmeaza exemplul de mai jos:
$anaf->addCif("123456","2019-05-20");$anaf->addCif("RO654321");// Daca data nu este setata, valoarea default va fi data de azi$raspuns =$anaf->get();// SAU$cifs = ["123456","RO6543221"];$anaf->addCif($cifs,"2019-05-20");$raspuns =$anaf->get();
Limite
Poti solicita raspuns pentru maxim 500 de CUI-uri simultan cu o rata de 1 request / secunda.
Requirements
PHP >= 7.1 | >= 8
Ext-Curl
Ext-Json
Ext-Mbstring
Exceptii:
Itrack\Anaf\Exceptions\LimitExceeded - Ai depasit limita de 500 de CUI-uri / request;
Itrack\Anaf\Exceptions\ResponseFailed - Raspunsul primit de la ANAF nu este in format JSON, exceptia returneaza body-ul raspunsului pentru a fi verificat manual;
Itrack\Anaf\Exceptions\RequestFailed - Raspunsul primit de la ANAF nu are status de succes, verifica manual raspunsul primit in exceptie.
Upgrade de la 2 la 3
Versiunea 2 nu este compatibila cu versiunea 3, daca aveti o implementare veche, trebuie modificata pentru a fi compatibila.