PHPackages                             agustinzamar/laravel-arca-sdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. agustinzamar/laravel-arca-sdk

ActiveLibrary[API Development](/categories/api)

agustinzamar/laravel-arca-sdk
=============================

A Laravel package to easily use the ARCA (ex AFIP) web services.

v0.1.0(7mo ago)7157[3 PRs](https://github.com/agustinzamar/laravel-arca-sdk/pulls)MITPHPPHP ^8.1||^8.2||^8.3||^8.4||^8.5CI passing

Since Oct 6Pushed 1mo ago2 watchersCompare

[ Source](https://github.com/agustinzamar/laravel-arca-sdk)[ Packagist](https://packagist.org/packages/agustinzamar/laravel-arca-sdk)[ Docs](https://github.com/agustinzamar/laravel-arca-sdk)[ GitHub Sponsors]()[ RSS](/packages/agustinzamar-laravel-arca-sdk/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (12)Versions (6)Used By (0)

A Laravel package to easily use the ARCA (ex AFIP) web services.
================================================================

[](#a-laravel-package-to-easily-use-the-arca-ex-afip-web-services)

[![Latest Version on Packagist](https://camo.githubusercontent.com/494556910d0b14acb670d46cf94fbd4c5d7f6fbee8d7490c67ed4e40409b6c3d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6167757374696e7a616d61722f6c61726176656c2d617263612d73646b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/agustinzamar/laravel-arca-sdk)[![GitHub Tests Action Status](https://camo.githubusercontent.com/a9e2bdac45fb5e6618dab5a67dceacf933227d0b186c7b682dbc50681a45cc2c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6167757374696e7a616d61722f6c61726176656c2d617263612d73646b2f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/agustinzamar/laravel-arca-sdk/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/e41361068b862ea042ffca7e34841349ebe09f9127869b4bb0061e6487a196f3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6167757374696e7a616d61722f6c61726176656c2d617263612d73646b2f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/agustinzamar/laravel-arca-sdk/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/4959684c1825ab80f265fcf7c8eba1a9d0798561a05644920cfe29d7f5ca1eb3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6167757374696e7a616d61722f6c61726176656c2d617263612d73646b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/agustinzamar/laravel-arca-sdk)

This package makes it easy to use the ARCA (ex AFIP) web services in your Laravel application.

⚠️ Do not use this package yet, it is still under development.

Installation
------------

[](#installation)

You can install the package via composer:

```
composer require agustinzamar/laravel-arca-sdk
```

You can publish the config file with:

```
php artisan vendor:publish --tag="arca-sdk-config"
```

Optionally, you can publish the views using

```
php artisan vendor:publish --tag="arca-sdk-views"
```

### Setup

[](#setup)

To Start using the ARCA Web Services you need to register a certificate on their system.

1. Create CSR file: 2. Run `openssl genrsa -out arca.key 2048`3. Run `openssl req -new -key arca.key -subj "/C=AR/O=YourName/CN=AppName/serialNumber=CUIT XXXXXXXXXXX" -out arca.csr`
2. Login into [ARCA](https://www.afip.gob.ar/) using your CUIT and password
3. Search for WSAS - Autogestión Certificados Homologación"
4. Select "Nuevo Certificado"
5. Set a name and paste the contents of the arca.csr file, then click on "Crear DN y obtener certificado"
6. Copy the result on a plain text file and save it as arca.crt
7. Paste `arca.key`, `arca.csr`, and `arca.crt` in `storage/app/arca/`
8. You are now ready to use the package

Usage
-----

[](#usage)

You can use the package by using the `Arca` facade. Here is an example of how to use it:

### Obtaining Invoice Types

[](#obtaining-invoice-types)

```
Arca::getInvoiceTypes()
```

### Obtaining Recipient VAT Conditions

[](#obtaining-recipient-vat-conditions)

```
Arca::getRecipientVatConditions();
```

### Obtaining the last authorized invoice number

[](#obtaining-the-last-authorized-invoice-number)

```
$pointOfSale = 1; // Your point of sale number
Arca::getLastInvoiceNumber($pointOfSale, InvoiceType::FACTURA_A);
```

### Obtaining the details of an existing invoice

[](#obtaining-the-details-of-an-existing-invoice)

```
$pointOfSale = 1; // Your point of sale number
$invoiceNumber = 123; // Invoice number to query
Arca::getInvoiceDetails($pointOfSale, InvoiceType::FACTURA_C, $invoiceNumber);
```

### Creating an invoice

[](#creating-an-invoice)

```
$pointOfSale = 1; // Your point of sale number
$nextInvoiceNumber = Arca::getLastInvoiceNumber($pointOfSale, InvoiceType::FACTURA_C);
$request = new CreateInvoiceRequest(
    concept: InvoiceConcept::GOODS,
    pointOfSale: $pointOfSale,
    identification: new Identification(
        type: IdentificationType::CUIT,
        number: 20111111112
    ),
    invoiceType: InvoiceType::FACTURA_C,
    invoiceFrom: $nextInvoiceNumber,
    invoiceTo: $nextInvoiceNumber,
    total: 150.0,
    net: 150.0,
    exempt: 0.0,
    nonTaxableConceptsAmount: 0.0,
    vatCondition: 1,
    currency: Currency::ARS,
    currencyQuote: 1.0,
    invoiceDate: now()->addDays(3),
);

Arca::generateInvoice($request);

// Or automatically generate next invoice
$request = new CreateInvoiceRequest(
    concept: InvoiceConcept::GOODS,
    pointOfSale: 12,
    identification: new Identification(
        type: IdentificationType::CUIT,
        number: 20111111112
    ),
    invoiceType: InvoiceType::FACTURA_C,
    total: 150.0,
    net: 150.0,
    exempt: 0.0,
    nonTaxableConceptsAmount: 0.0,
    vatCondition: 1,
    currency: Currency::ARS,
    currencyQuote: 1.0,
    invoiceDate: now()->addDays(3),
);

Arca::generateNextInvoice($request);
```

The package also offers a set of convenient Enums for commonly used values:

- `InvoiceType`: Represents the different types of invoices (e.g., FACTURA\_A, FACTURA\_B, etc.).
- `InvoiceConcept`: Represents the concept of the invoice (e.g., GOODS, SERVICES, etc.).
- `IdentificationType`: Represents the type of identification (e.g., CUIT, CUIL, etc.).
- `Currency`: Represents the currency type (e.g., ARS, USD, etc.).
- `RecipientVatCondition`: Represents the VAT condition of the recipient (e.g., RESPONSABLE\_INSCRIPTO, MONOTRIBUTISTA, etc.).

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please report any security vulnerabilities to

Credits
-------

[](#credits)

- [Agustin Zamar](https://github.com/agustinzamar)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance78

Regular maintenance activity

Popularity20

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 93.6% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

218d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2f2e641fb5246d0e0af0c54fd4d5ad002e5647004162d1929e7534edc8a82c5f?d=identicon)[agustinzamar](/maintainers/agustinzamar)

---

Top Contributors

[![agustinzamar](https://avatars.githubusercontent.com/u/36794905?v=4)](https://github.com/agustinzamar "agustinzamar (44 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (1 commits)")

---

Tags

afiparcaargentinafacturacionfacturacion-electronicafacturacion-electronica-argentinafacturacion-electronica-argentina-phpfacturacion-electronica-phpsdklaravelsdkafiparcaAgustin Zamar

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/agustinzamar-laravel-arca-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/agustinzamar-laravel-arca-sdk/health.svg)](https://phpackages.com/packages/agustinzamar-laravel-arca-sdk)
```

###  Alternatives

[scalar/laravel

Render your OpenAPI-based API reference

6183.9k2](/packages/scalar-laravel)[ryangjchandler/bearer

Minimalistic token-based authentication for Laravel API endpoints.

8129.8k](/packages/ryangjchandler-bearer)[combindma/laravel-facebook-pixel

Meta pixel integration for Laravel

4956.9k](/packages/combindma-laravel-facebook-pixel)[stechstudio/laravel-hubspot

A Laravel SDK for the HubSpot CRM Api

2971.0k](/packages/stechstudio-laravel-hubspot)[njoguamos/laravel-plausible

A laravel package for interacting with plausible analytics api.

208.8k](/packages/njoguamos-laravel-plausible)[tapp/filament-webhook-client

Add a Filament resource and a policy for Spatie Webhook client

1120.2k](/packages/tapp-filament-webhook-client)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
