akira / efatura
Laravel package for Cabo Verde e-Fatura fiscal data, configuration, and validation.
Fund package maintenance!
Requires
- php: ^8.5
- ext-dom: *
- ext-libxml: *
- ext-openssl: *
- ext-zip: *
- brick/money: ^0.11.0
- illuminate/config: ^13.0
- illuminate/console: ^13.0
- illuminate/contracts: ^13.0
- illuminate/filesystem: ^13.0
- illuminate/support: ^13.0
- illuminate/validation: ^13.0
- spatie/laravel-data: ^4.19
- spatie/laravel-package-tools: ^1.16
Requires (Dev)
- driftingly/rector-laravel: ^2.3
- fakerphp/faker: ^1.24
- larastan/larastan: ^3.10
- laravel/pail: ^1.2
- laravel/pint: ^1.32
- mockery/mockery: ^1.6
- nunomaduro/collision: ^8.9.5
- orchestra/testbench: ^11.0.0
- peckphp/peck: ^0.3.0
- pestphp/pest: ^5.0
- pestphp/pest-plugin-arch: ^5.0
- pestphp/pest-plugin-browser: ^5.0
- pestphp/pest-plugin-laravel: ^5.0
- pestphp/pest-plugin-type-coverage: ^5.0
- phpstan/extension-installer: ^1.4
- phpstan/phpstan-deprecation-rules: ^2.0
- phpstan/phpstan-phpunit: ^2.0
- rector/rector: ^2.4
- roave/security-advisories: dev-latest
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-10-01 12:57:37 UTC
README
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
- Documentation index
- Configuration: config/efatura.php
- API reference: source API
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:
- MIT License (LICENSE-MIT or https://opensource.org/licenses/MIT)
- Apache License 2.0 (LICENSE-APACHE or https://www.apache.org/licenses/LICENSE-2.0)
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.