Download the PHP package joaomfrebelo/saft-pt_4_php without Composer
On this page you can find all versions of the php package joaomfrebelo/saft-pt_4_php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download joaomfrebelo/saft-pt_4_php
More information about joaomfrebelo/saft-pt_4_php
Files in joaomfrebelo/saft-pt_4_php
Package saft-pt_4_php
Short Description PHP core lib to work with SAF-T (PT). A library/framework to generate, parse, import and validate programmatically or cli the Portuguese Tax Audit file SAF-T (PT)
License MIT
Homepage https://github.com/joaomfrebelo/saft-pt_4_php
Informations about the package saft-pt_4_php
Rebelo SAFT-PT
Rebelo SAFT-PT is a PHP library/framework to lead with the Portuguese tax audit file. The community edition lets to generate, parse, import and validate programmatically or CLI the Portuguese Tax Audit file SAFT-PT. This library also create the digital signature that is impose by law to all invoice, transport documents and working documents issued im Portugal. The enterprise edition also submit the SAFT-PT file to the Portuguese Tax Authority e-fatura web site.
Install
Examples
https://github.com/joaomfrebelo/Saft-PT_4_PHP/tree/master/examples
Legal documentation, portuguse tax law
https://github.com/joaomfrebelo/Saft-PT_4_PHP/tree/master/legal_documentation
Parse and validate a SAFT-PT file:
Create the signature hash
Validate the hash signature
Create a SAFT-PT file
CLI file validation
To more options like delta, help
Using as stand alone SAFT-PT validator
First clone or download the project
In the project root (php >= 7.4 installed)
Some type of validations
-
XML scheme
-
Document values
-
Total values
-
Documents number sequence
-
Signature
-
Address where are mandatory
-
Dates
- And other stuff
API documentation
https://joaomfrebelo.github.io/Saft-PT_4_PHP/
Professional support:
| Features | CE | EE |
|---|---|---|
| Generate SAFT | yes | yes |
| Parse SAFT | yes | yes |
| Create hash signature | yes | yes |
| Validate file programmatically | yes | yes |
| Validate file CLI | yes | yes |
| Validate hash signature | yes | yes |
| Submit file to e-fatura | no | yes |
| Create XML file in memory | yes | yes |
| Create XML file with StreamWriter to save memory | no | yes |
| Integration with DataSource | no | yes |
| Easy to integrate with Unit test | yes | yes |
| Integration with other languages (With midleware) | yes |
License
MIT License
All versions of saft-pt_4_php with dependencies
monolog/monolog Version ^3.10.0
joaomfrebelo/date Version ^3.0.0
symfony/console Version ^v7.4.13
spatie/async Version ^1.5
symfony/process Version ^v7.4.13
joaomfrebelo/composer-revision-plugin Version ^2.0.1
ext-simplexml Version *
ext-dom Version *
ext-libxml Version *
ext-openssl Version *
ext-decimal Version *