Search by

akira / efatura

kidiatoliny

Laravel package for Cabo Verde e-Fatura fiscal data, configuration, and validation.

Package info

github.com/akira-io/laravel-efatura

pkg:composer/akira/efatura

Fund package maintenance!

kidiatoliny

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 1

Open Issues: 0

dev-main 2026-10-01 10:35 UTC

This package is auto-updated.

Last update: 2026-10-01 12:57:37 UTC


README

Laravel Efatura

Packagist Version downloads tests license php

Laravel package for Cabo Verde e-Fatura fiscal data, configuration, and validation.

Install

composer require akira/efatura
{
  "require": {
    "akira/efatura": "^1.0"
  }
}

Publish the package configuration and prepare the required environment keys:

php artisan efatura:install

Quick Start

use Akira\Efatura\Data\ElectronicInvoiceData;
use Akira\Efatura\Enums\DocumentType;

$document = ElectronicInvoiceData::from([
    'invoice' => [
        'type' => DocumentType::ELECTRONIC_INVOICE,
        'issueDate' => now()->toDateString(),
        'emitter' => [
            'nif' => '100200300',
            'name' => 'Emitter',
        ],
        'receiver' => [
            'nif' => '900800700',
            'name' => 'Receiver',
        ],
        'lines' => [
            [
                'description' => 'Service',
                'quantity' => 1,
                'unitPrice' => 1000,
                'total' => 1000,
                'taxes' => [
                    [
                        'type' => 'IVA',
                        'rate' => 15,
                        'amount' => 150,
                    ],
                ],
            ],
        ],
        'totals' => [
            'subtotal' => 1000,
            'taxTotal' => 150,
            'grandTotal' => 1150,
        ],
    ],
]);

Documentation

Testing

composer test

Changelog

See CHANGELOG.md for what has changed recently. Releases use conventional commits, and git-cliff generates the changelog when a version tag is pushed.

Contributing

See CONTRIBUTING.md for contribution details.

Security

Review SECURITY.md to report security vulnerabilities.

Credits

License

Dual-licensed under either of the following, at your option:

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you, as defined in the Apache-2.0 license, shall be dual-licensed as above, without extra terms or conditions.