GithubHelp home page GithubHelp logo

cctweaker / anaf-api-client-php Goto Github PK

View Code? Open in Web Editor NEW

This project forked from tecsiaron/anaf-api-client-php

0.0 0.0 0.0 131 KB

API ANAF pentru interogare CIF si upload RO-eFactura

Home Page: https://tecsiaron.github.io/ANAF-API-Client-PHP/

License: MIT License

Shell 0.18% PHP 99.70% Batchfile 0.12%

anaf-api-client-php's Introduction

ANAF-API-Client-PHP

API ANAF pentru interogare CIF si upload RO-eFactura.
Foloseste PHP 8+

Pentru a instala:

composer require tecsiaron/anaf-api-client-php  

Exemplu:

<?php  
use EdituraEDU\ANAF\ANAFAPIClient;  
$Logger= function (string $message, ?Throwable $ex = null)  
{  
	echo $message;
	if($ex !== null)
	{
		echo $ex->getMessage();
	}
};  
$anaf = new ANAFAPIClient(ANAF_OAUTH,false, $Logger);  
var_dump($anaf->GetEntity("RO12345678"));  

Formatul pentru datele de oauth:

const ANAF_OAUTH=[
    'clientId' => 'client_id_din_contul_de_dezvoltator',
    'clientSecret' => 'client_secret',
    'redirectUri' => 'redirect_url',
    'urlAuthorize' => 'https://logincert.anaf.ro/anaf-oauth2/v1/authorize',
    'urlAccessToken' => 'https://logincert.anaf.ro/anaf-oauth2/v1/token',
    'urlResourceOwnerDetails' => 'https://logincert.anaf.ro/anaf-oauth2/v1/resource'
];

Documentatie: https://tecsiaron.github.io/ANAF-API-Client-PHP/

Functii:

  • Accesarea registrului de inregistrari in scopuri de TVA
  • Autentificare OAuth
  • Incarcarea unei facturi UBL in sistemul RO e-Factura
  • Validare UBL prin API ANAF (API instabil)
  • Conversie UBL in PDF prin API ANAF
  • Listare raspunsuri din SPV
  • Descarcare raspuns din SPV

anaf-api-client-php's People

Contributors

tecsiaron avatar kurounin avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.