Download the PHP package agustinzamar/laravel-arca-sdk without Composer
On this page you can find all versions of the php package agustinzamar/laravel-arca-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download agustinzamar/laravel-arca-sdk
More information about agustinzamar/laravel-arca-sdk
Files in agustinzamar/laravel-arca-sdk
Package laravel-arca-sdk
Short Description A Laravel package to easily use the ARCA (ex AFIP) web services.
License MIT
Homepage https://github.com/agustinzamar/laravel-arca-sdk
Informations about the package laravel-arca-sdk
A Laravel package to easily use the ARCA (ex AFIP) web services.
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
You can install the package via composer:
You can publish the config file with:
Optionally, you can publish the views using
Setup
To Start using the ARCA Web Services you need to register a certificate on their system.
- Create CSR file:
- Run
openssl genrsa -out arca.key 2048 - Run
openssl req -new -key arca.key -subj "/C=AR/O=YourName/CN=AppName/serialNumber=CUIT XXXXXXXXXXX" -out arca.csr
- Run
- Login into ARCA using your CUIT and password
- Search for WSAS - Autogestión Certificados Homologación"
- Select "Nuevo Certificado"
- Set a name and paste the contents of the arca.csr file, then click on "Crear DN y obtener certificado"
- Copy the result on a plain text file and save it as arca.crt
- Paste
arca.key,arca.csr, andarca.crtinstorage/app/arca/ - You are now ready to use the package
Usage
You can use the package by using the Arca facade. Here is an example of how to use it:
Obtaining Invoice Types
Obtaining Recipient VAT Conditions
Obtaining the last authorized invoice number
Obtaining the details of an existing invoice
Creating an invoice
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
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please report any security vulnerabilities to [email protected]
Credits
- Agustin Zamar
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-arca-sdk with dependencies
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^11.0||^12.0
ext-simplexml Version *
ext-soap Version *
ext-openssl Version *