stev / lista-firme-bundle
Symfony 2 Bundle for Lista Firme Romanian API
Installs: 285
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 4
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=8.0
- ext-json: *
- guzzlehttp/guzzle: 7.*
- symfony/framework-bundle: 6.* | 7.*
Requires (Dev)
- fzaninotto/company-name-generator: dev-master
- fzaninotto/faker: 1.*
- dev-master / 4.x-dev
- v4.0
- v3.3.1
- v3.3
- v3.2.6
- v3.2.5
- v3.2.4
- v3.2.3
- v3.2.2
- v3.2.1
- v3.2
- v3.1.4
- v3.1.3
- v3.1.2
- v3.1.1
- v3.1
- v3.0.x-dev
- v3.0
- v2.0.3
- v2.0.2
- v2.0.1
- v2.0
- v1.0
- dev-migrate_sf7
- dev-vat_number_util
- dev-vies_checker
- dev-anaf-cif-checker
- dev-migrate_sf3
- dev-fix-faker-call
- dev-dev-2.0.2
- dev-update-v2.1
- dev-openapi-v2
- dev-devMfin
This package is auto-updated.
Last update: 2024-11-16 12:00:26 UTC
README
Symfony 2 Bundle for Lista Firme API, Ministerul de Finante, si openAPI.ro
!!! Din 15.09.2016 este necesar sa aveti un apiKey pentru openAPI. Pentru detalii inregistrati-va pe openapi.ro
Daca folositi OpenAPI si cumva se depaseste limita de interogari se va folosi automat varianta legacy!
1. Installation:
Add this to composer.json
"stev/lista-firme-bundle": "2.0"
Add this in app/AppKernel.php
new Stev\ListaFirmeBundle\StevListaFirmeBundle()
Add this in app/config.yml
stev_lista_firme:
cifChecker: mFin/anaf/openApi/listaFirme
username: demo
password: demo
offline: false
enabled: yes
#pathToPhantom is needed if you choose mFin as cifChecker
pathToPhantom: path/to/bin/phantomjs'
#apiKey is needed only if you work with open starting from 15.09.2016
apiKey: your-api-key
Possible options for cifChecker are listaFirme, mFin, openApi and anaf.
If you want to use Finance Ministry API you must add this to your composer.json
"post-install-cmd": [
"PhantomInstaller\\Installer::installPhantomJS"
],
"post-update-cmd": [
"PhantomInstaller\\Installer::installPhantomJS"
],
2. Usage
/* @var $listaFirme \Stev\ListaFirmeBundle\Lib\ListaFirme */
$listaFirme = $this->get('stev.lista_firme');
$response = $listaFirme->checkCompanyByCUI($cui);
Lista Firme API documentation can be found at http://www.verificaretva.ro/serviciul_tva_api_web_service.htm
Finance Ministry API can be found http://www.mfinante.ro/agenticod.html
OpenAPI documentation can be found at http://openapi.ro/#company
ANAF API docs https://webservicesp.anaf.ro/PlatitorTvaRest/api/v3/