Download the PHP package axiostudio/fattura-elettronica without Composer

On this page you can find all versions of the php package axiostudio/fattura-elettronica. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package fattura-elettronica

Fattura Elettronica PHP

Latest Version on Packagist Tests Total Downloads

Introduzione

Fattura Elettronica è un pacchetto PHP che consente di generare all'interno del proprio applicativo, fatture elettroniche in XML compatibili con le seguenti specifiche: https://www.agenziaentrate.gov.it/portale/web/guest/fatturazione-elettronica-e-dati-fatture-transfrontaliere-new

Requisiti

Installazione

Per installare il pacchetto eseguire:

Utilizzo

Finita l'installazione, per utilizzare il pacchetto è necessario inizializzare la classe:

Successivamente bisogna passare i dati necessari al metodo "compose" che ci restituirà un array contente un parametro fileName che dichiara il nome del file XML generato e un parametro fileContent che contiene in formato string l'XML generato.

Per generare la fattura è necessario richiamare il metodo compose() passando al suo interno i dati necessari alla fattura che saranno parsati, computati e convertiti in formato XML secondo le specifiche.

La funzione "compose" necessita dei seguenti oggetti, nel seguente ordine per comporre la fattura:

Ogni oggetto ha una specifica struct con dati obbligatori e dati opzionali. Di seguito la descrizione di essi:

DatiAnagrafici

Id

Anagrafica

Sede

DatiGeneraliDocumento

DatiPagamento

DettaglioPagamento

DatiRiepilogo

DatiTrasmissione

DettaglioLinee

DettaglioPagamento

Inizializzazione di una nuova fattura

Per inizializzare una fattura avremo quindi una struct di questo tipo:

Esempio completo

Di seguito un semplice esempio di utilizzo:

Note

Per supporto o bug utilizzare le Issue di Github, per collaborare invece è sufficente aprire un PR con le specifiche dell'integrazione eseguita.

Credits

Questo pacchetto è stato creato ed è mantenuto da Axio Studio, per maggiori informazioni: https://axio.studio.


All versions of fattura-elettronica with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1|^8.2|^8.3
spatie/array-to-xml Version ^3.2
symfony/validator Version ^6.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package axiostudio/fattura-elettronica contains the following files

Loading the files please wait ....