php-sdicoop-server
php-sdicoop-server copied to clipboard
A PHP package for implementing web services required by the Italian Exchange System. (Pacchetto PHP per l'implementazione dei webservices TrasmissioneFatture e RicezioneFatture richiesti dal SdI).
#+TITLE: PHP SdICoop - Server
A PHP package for implementing web services required by the [[https://www.fatturapa.gov.it/export/fatturazione/en/sdi.htm?l=en][Italian Exchange System (aka "SdI")]].
/(Pacchetto PHP per l'implementazione dei webservices TrasmissioneFatture e RicezioneFatture richiesti dal SdI)./
Please refer to
- [[https://github.com/taocomp/php-sdicoop-client][PHP SdICoop - Client]] to connect to SdI web services
- [[https://github.com/taocomp/php-e-invoice-it][PHP E-invoice It]] for managing italian e-invoice and notice XML formats
See [[https://forum.italia.it/c/fattura-pa][Forum Italia - Fatturazione Elettronica]] for server configuration, interoperability tests, etc. In particular:
- Apache configuration :: [[https://forum.italia.it/t/accreditamento-sdicoop-configurazione-ssl-su-apache/3314][Accreditamento SDICoop: configurazione SSL su Apache - Fatturazione Elettroni...]]
- Interoperability tests :: [[https://forum.italia.it/t/test-interoperabilita-soluzioni/4370][Test Interoperabilità Soluzioni - Fatturazione Elettronica - Forum Italia]]
- Quickstart ** Web Service "TrasmissioneFatture" Just include ~examples/tramissione-fatture.php~ in your endpoint. For example, if your test endpoint is
#+BEGIN_SRC https://test.example.com/trasmissione/index.php #+END_SRC
put the following code in your ~index.php~:
#+BEGIN_SRC
setClass('\MyTrasmissioneFattureHandler'); $ws->handle(); } catch (\Exception $e) { WebService::log($e->getMessage(), LOG_ERR); } #+END_SRC *** Web service "RicezioneFatture" Follow the same instructions as in "TrasmissioneFatture". ** Logs Both web services write on system log. For example, when you receive a notice "RicevutaConsegna": #+BEGIN_SRC Dec 14 23:52:32 web Taocomp\Einvoicing\SdicoopServer\WebService: RicevutaConsegna IdentificativoSdI:7045996 NomeFile:ITXXXXXXXXXXX_00001_RC_002.xml #+END_SRC * Credits We want to thank all contributors of [[https://forum.italia.it/c/fattura-pa][Forum Italia - Fatturazione Elettronica]] who have shared their snippets and any available info. * License GPLv3.