multinexo / php-afip-ws
Librería PHP para interactuar con el webservice de AFIP (Argentina -> factura electrónica).
Installs: 9 755
Dependents: 0
Suggesters: 0
Security: 0
Stars: 21
Watchers: 5
Forks: 10
Open Issues: 1
Requires
- php: >=7.1
- ext-json: *
- ext-simplexml: *
- ext-soap: *
- respect/validation: ^1.0
Requires (Dev)
- codedungeon/phpunit-result-printer: 0.30.1
- mockery/mockery: 1.4.3
- phpunit/phpunit: 9.5.4
- reyesoft/ci: 1.4.3
- dev-master
- 2.0.10
- 2.0.9
- 2.0.8
- 2.0.7
- 2.0.6
- 2.0.5
- 2.0.4
- 2.0.3
- 2.0.2
- 2.0.1
- 2.0.0
- 1.0.1
- 1.0.0
- dev-removed/wrong-enums-removed
- dev-changed/some-new-enum-values-realed-to-arca-afip
- dev-fix/CbteAsoc-o-PeriodoAsoc-missing-on-credit-document
- dev-fix/error_600
- dev-fix/issue_45
- dev-fix/pos
- dev-fix/issue-41-CbteAsoc
- dev-update/testing-certificates
- dev-BE-142-circleci-to-github-actions
- dev-feature/using-flysystem
- dev-fix/wsfe_without_error_observation
This package is auto-updated.
Last update: 2025-01-18 19:34:48 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
docker run -it --rm --name php73 -e PHP_EXTENSIONS="" -v "$PWD":/usr/src/app thecodingmachine/php:7.3-v4-cli bash composer coverage