Download the PHP package lopezsoft/ubl21dian without Composer

On this page you can find all versions of the php package lopezsoft/ubl21dian. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package ubl21dian

DIAN SDK Node

Librería para Node.js y TypeScript diseñada para facilitar la integración con los servicios web de la DIAN en Colombia. Permite la firma de documentos electrónicos (facturas, notas, nómina) bajo el estándar XAdES-EPES y la comunicación SOAP con los endpoints de la DIAN.

Este proyecto es una migración y modernización de la librería PHP lopezsoft/ubl21dian, aplicando principios de Clean Code, SOLID y Patrones de Diseño para una mayor mantenibilidad y extensibilidad.

✨ Características

📦 Instalación

🚀 Uso Básico

La librería se utiliza a través de la clase DianClient, que actúa como una fachada para todas las operaciones. El flujo de trabajo es simple:

  1. Instanciar el cliente con la configuración necesaria.
  2. Inicializarlo con las credenciales del certificado.
  3. Ejecutar comandos para cada operación, pasándole los parámetros requeridos.

Ejemplo Completo: Enviar una Factura Electrónica

A continuación, un ejemplo completo de cómo firmar y enviar una factura electrónica.

Ejemplo 2: Consultar el Estado de un Documento

Ejemplo 3: Enviar Nómina Electrónica

📚 API (Resumen)

DianClient

Es la clase principal y el único punto de entrada a la librería.


Comandos Disponibles (/commands)

Cada clase representa una operación de la DIAN. Debes instanciar el comando que necesitas y pasarlo al método execute del cliente.

Comando Descripción Parámetros (params)
SendBillSyncCommand Envía una factura síncronamente. { fileName: string, unsignedUblXml: string }
SendBillAsyncCommand Envía una factura asíncronamente. { fileName: string, unsignedUblXml: string }
SendNominaSyncCommand Envía un documento de Nómina Electrónica. { unsignedPayrollXml: string }
SendEventCommand Envía un evento (ej. acuse de recibo). { unsignedEventXml: string }
SendBillAttachmentAsyncCommand Envía un documento adjunto (AttachedDocument). { fileName: string, unsignedAttachedDocumentXml: string }
SendTestSetAsyncCommand Envía un Set de Pruebas para habilitación. { fileName: string, contentFile: string, testSetId: string }
GetStatusCommand Consulta el estado de un documento. { trackId: string }
GetStatusZipCommand Consulta el estado de un envío asíncrono (ZIP). { trackId: string }
GetNumberingRangeCommand Consulta los rangos de numeración. { accountCode: string, accountCodeT: string, softwareCode: string }
GetXmlByDocumentKeyCommand Obtiene el XML de un documento por su CUFE/CUDE. { trackId: string }
GetExchangeEmailsCommand Obtiene los correos de intercambio del facturador. null (no requiere)
GetReferenceNotesCommand Obtiene las notas asociadas a un documento. { trackId: string }
GetAcquirerCommand Consulta la información de un adquiriente por su ID. { identificationType: string, identificationNumber: string }

📄 Licencia

Este proyecto está bajo la Licencia MIT. Puedes usarlo libremente en tus proyectos comerciales y de código abierto.


All versions of ubl21dian with dependencies

PHP Build Version
Package Version
Requires php Version >= 8.0
ext-dom Version *
ext-xml Version *
ext-curl Version *
ext-libxml Version *
ext-openssl Version *
ext-xmlwriter Version *
nesbot/carbon Version ^2.19 || ^3.8
ext-json Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package lopezsoft/ubl21dian contains the following files

Loading the files please wait ...