Welcome to LibreDTE Core
LibreDTE Core is a professional PHP library that provides complete electronic invoicing functionality for Chile. It handles DTE (Documento Tributario Electrónico) creation, validation, signing, and integration with the SII (Servicio de Impuestos Internos).LibreDTE Core is licensed under AGPL-3.0+. You must release your software’s source code publicly under AGPL when using this library. See terms and conditions for details.
Key Features
Document Management
Create, validate, and manage various Chilean tax documents including Facturas, Boletas, Notas de Crédito/Débito, and Guías de Despacho.
SII Integration
Full integration with SII webservices for document validation, submission, and status checking in both production and certification environments.
Digital Signatures
Built-in support for XML digital signatures using certificates, ensuring document authenticity and legal compliance.
Trading Parties
Manage Emisor (issuer) and Receptor (recipient) entities with complete validation of RUT, addresses, and authorization details.
Core Packages
LibreDTE Core is organized into focused packages:- Billing Package: Core functionality for tax document operations
document: Create and manage tax documentstrading_parties: Handle issuers and recipientsintegration: SII webservice integrationidentifier: Manage document foliosexchange: Document exchange between partiesbook: Sales and purchase booksownership_transfer: Property transfer documents
Requirements
- PHP 8.5 or higher
- Required PHP extensions:
curl,json,mbstring,openssl,soap - Composer for dependency management
Get Started
Installation
Install LibreDTE Core via Composer and configure your environment
Quick Start
Create your first electronic invoice in minutes
Architecture
LibreDTE Core uses a modern architecture:- Dependency Injection: Built on Symfony’s DI container for flexible service management
- Package System: Modular design with focused packages and components
- PSR Standards: Follows PSR-4 autoloading and other PHP standards
- Type Safety: Fully typed with PHP 8.5 features
Support
GitHub Issues
Report bugs and request features
Source Code
View the source code on GitHub