iutrace / php-afip-ws
Librería PHP para interactuar con el webservice de AFIP (Argentina -> factura electrónica).
dev-master
2024-05-16 18:07 UTC
Requires
- php: >=8.0
- ext-json: *
- ext-simplexml: *
- ext-soap: *
- respect/validation: ^1.0
Requires (Dev)
- codedungeon/phpunit-result-printer: 0.19.10
- php-mock/php-mock: 2.1.2
- phpunit/phpunit: 7.5.9
- reyesoft/ci: 1.3.0
This package is auto-updated.
Last update: 2025-01-16 19:37:12 UTC
README
Installation
composer require multinexo/php-afip-ws
Usage
/** Invoice with items */ $company_cuit = '20301112227'; $invoice = new AfipInvoice(); $invoice->addAfipDetail( (new AfipDetail()) ->setQty(2) ->setItemCode('P0001') ->setDescription('Cool cooler') ->setItemNet(50) ->setIvaConditionCode(IvaConditionCodes::IVA_21) ->setItemNet(55.25) ); $data = $invoice->getDataFromAfip( $this->getConfig($company_cuit) ); var_dump($data);
Documentation
For more information, visit official documentation.
Testing
composer coverage
Security
If you discover any security related issues, please contact us at info@reyesoft.com.
License
The MIT License (MIT). Please see License File for more information.