composer require multinexo/php-afip-ws
/** 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);
For more information, visit official documentation.
composer coverage
If you discover any security related issues, please contact us at info@reyesoft.com.
The MIT License (MIT). Please see License File for more information.