Skip to content

Librería para emitir facturas electrónicas con el WebService de AFIP

License

Notifications You must be signed in to change notification settings

iutrace/php-afip-ws

 
 

Repository files navigation

PHP library for AFIP Web Services (Argentina)

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 [email protected].

License

The MIT License (MIT). Please see License File for more information.

About

Librería para emitir facturas electrónicas con el WebService de AFIP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 98.2%
  • Shell 1.8%