Skip to main content

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 documents
    • trading_parties: Handle issuers and recipients
    • integration: SII webservice integration
    • identifier: Manage document folios
    • exchange: Document exchange between parties
    • book: Sales and purchase books
    • ownership_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
Before using LibreDTE Core in production, ensure you understand and accept the terms and conditions. You must publicly attribute the project and release your code under AGPL.

Build docs developers (and LLMs) love