PHPackages                             afiphp/afiphp - 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. afiphp/afiphp

ActiveLibrary[API Development](/categories/api)

afiphp/afiphp
=============

Webservices AFIP

1.1.1(1y ago)041MITPHPPHP &gt;=7.4

Since Sep 21Pushed 1y ago1 watchersCompare

[ Source](https://github.com/afiphp/afiphp)[ Packagist](https://packagist.org/packages/afiphp/afiphp)[ Docs](https://github.com/afiphp/afiphp)[ GitHub Sponsors](https://github.com/afiphp)[ RSS](/packages/afiphp-afiphp/feed)WikiDiscussions main Synced today

READMEChangelog (4)Dependencies (4)Versions (5)Used By (0)

Webservices AFIP
================

[](#webservices-afip)

[![Latest Version on Packagist](https://camo.githubusercontent.com/bf905a3f9a5157194750714a3bb70b0563e633565a3549259bba7816e5a2db63/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6166697068702f6166697068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/afiphp/afiphp)[![GitHub Tests Action Status](https://camo.githubusercontent.com/5f3df94fc7711e8e6ac2a124f503fba9ea577a21ad927ae6cc8f169b0e3d7543/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6166697068702f6166697068702f54657374733f6c6162656c3d7465737473)](https://github.com/afiphp/afiphp/actions?query=workflow%3ATests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/6c4cb5371ddfb35e2366a437b751a9e6df5050d6685b777b505e84bf55769592/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f6166697068702f6166697068702f436865636b253230262532306669782532307374796c696e673f6c6162656c3d636f64652532307374796c65)](https://github.com/afiphp/afiphp/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/9a9e5ec5bba0d431a828443e5b343d81da983a890d6cc37299954587a3570026/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6166697068702f6166697068702e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/afiphp/afiphp)

Afiphp allows you to operate with web services regarding AFIP, mainly related to electronic invoicing.

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

[](#installation)

You can install the package via composer:

```
composer require afiphp/afiphp
```

Usage
-----

[](#usage)

```
use Afiphp\Webservices\WsFev1;
use Afiphp\Entities\Customer;
use Afiphp\Entities\Invoice;
use Afiphp\Enums\InvoiceType;
use Afiphp\Enums\IdentityDocumentType;

$wsfe = new WsFev1('20111111112', __DIR__ . '/resources');
$invoice = Invoice::createProductInvoice(
        InvoiceType::FACTURA_A,
        2, // sales point
        150, // taxed amount
        0, // untaxed amount
        0, // exempt amount
        new Customer(IdentityDocumentType::CUIT, '20111111112')
    )
    ->addTax(
        5, // code
        150, // taxable base
        31.5 // amount
    );
$cae = $wsfe->createCaeFromInvoice($invoice);
echo $cae->number;
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

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

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

[](#contributing)

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

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

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

License
-------

[](#license)

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

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance43

Moderate activity, may be stable

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Every ~432 days

Total

4

Last Release

449d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4120439?v=4)[Claudio Escobar](/maintainers/esclaudio)[@esclaudio](https://github.com/esclaudio)

---

Top Contributors

[![esclaudio](https://avatars.githubusercontent.com/u/4120439?v=4)](https://github.com/esclaudio "esclaudio (18 commits)")

---

Tags

afipafiphp

###  Code Quality

TestsPest

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/afiphp-afiphp/health.svg)

```
[![Health](https://phpackages.com/badges/afiphp-afiphp/health.svg)](https://phpackages.com/packages/afiphp-afiphp)
```

###  Alternatives

[hubspot/api-client

Hubspot API client

24016.2M20](/packages/hubspot-api-client)[afipsdk/afip.php

Libreria para usar los Web Services de AFIP (Argentina)

290134.6k5](/packages/afipsdk-afipphp)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172445.0k15](/packages/pocketmine-bedrock-protocol)[multinexo/php-afip-ws

Librería PHP para interactuar con el webservice de AFIP (Argentina -&gt; factura electrónica).

2210.2k](/packages/multinexo-php-afip-ws)

PHPackages © 2026

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