Download the PHP package pronesoft-rd/ecf-sdk-php without Composer

On this page you can find all versions of the php package pronesoft-rd/ecf-sdk-php. 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 ecf-sdk-php

SDK de PHP para eCF-Pronesoft

Descripción general

API de nivel productivo para emitir Comprobantes Fiscales Electrónicos (e-CF) en la República Dominicana a través de la plataforma Pronesoft.

Este SDK encapsula por completo el flujo de autenticación, renovación y reintento de tokens de seguridad mediante el wrapper principal EcfClient.


Primeros Pasos (Getting Started)

La forma recomendada de interactuar con el SDK es a través del cliente unificado EcfClient. Este se encarga de realizar la autenticación inicial, refrescar el token antes de su vencimiento e inyectar las cabeceras requeridas de forma transparente.

Delegación multi-empresa (Sucursales)

Para actuar en nombre de una empresa asociada (sucursal), puedes usar el método forTenant para obtener una instancia del cliente configurada con la cabecera x-tenant-id:


Instalación y Uso

Requisitos

PHP 8.1 y superior.

Instalación vía Composer

Para instalar las dependencias en tu proyecto utilizando Composer, agrega lo siguiente a tu archivo composer.json:

Luego ejecuta en tu terminal:

Instalación Manual

Descarga los archivos del repositorio e incluye el cargador automático:

API Endpoints

All URIs are relative to https://api.ecf.sandbox.pronesoft.com/api/v1

Class Method HTTP request Description
AssociatedCompaniesApi createAssociatedCompany POST /associated-companies Crear empresa asociada / sucursal
AssociatedCompaniesApi deleteAssociatedCompany DELETE /associated-companies/{companyId} Eliminar empresa asociada
AssociatedCompaniesApi getCompanyDocumentMetrics GET /associated-companies/{companyId}/documents-metrics Métricas de documentos de la empresa
AssociatedCompaniesApi getCompanyMetrics GET /associated-companies/{companyId}/metrics Métricas de la empresa
AssociatedCompaniesApi listAssociatedCompanies GET /associated-companies Listar empresas asociadas / sucursales
AssociatedCompaniesApi updateAssociatedCompany PUT /associated-companies/{companyId} Actualizar empresa asociada
AuthenticationApi getAccessToken POST /oauth/token Obtener token de acceso (OAuth 2.0)
AutomatedCertificationApi downloadCertification GET /dgii-ecf/automated-certification/{id}/download Descargar ZIP de certificación
AutomatedCertificationApi getCertificationStatus GET /dgii-ecf/automated-certification/{id}/status Estado del proceso de certificación
AutomatedCertificationApi listCertificationNiches GET /dgii-ecf/automated-certification/niches Listar nichos de certificación
AutomatedCertificationApi startCertification POST /dgii-ecf/automated-certification/start Iniciar proceso de certificación
CommercialApprovalsApi getCommercialApprovalById GET /documents/approvals/{id} Obtener aprobación comercial por ID
CommercialApprovalsApi listCommercialApprovals GET /documents/approvals Listar aprobaciones comerciales
DigitalCertificatesApi uploadCertificate POST /{rnc}/certificates Subir certificado digital (P12/PFX)
DocumentsReceivedApi getReceivedDocumentById GET /documents/received/{id} Obtener documento recibido por ID
DocumentsReceivedApi getReceivedDocumentStatsBySupplier GET /documents/received/stats/by-supplier Top 10 proveedores por volumen de documentos recibidos
DocumentsReceivedApi getReceivedDocumentStatsSummary GET /documents/received/stats/summary Estadísticas de documentos recibidos
DocumentsReceivedApi listReceivedDocuments GET /documents/received Listar documentos recibidos
DocumentsSentApi downloadSentDocumentXml GET /documents/download Descargar XML del documento
DocumentsSentApi getSentDocumentById GET /documents/{id} Obtener detalle del documento
DocumentsSentApi getSentDocumentLogs GET /documents/logs/{id} Logs de procesamiento del documento
DocumentsSentApi getSentDocumentStats GET /documents/stats/summary Estadísticas de documentos enviados
DocumentsSentApi getSentDocumentStatsByEnvironment GET /documents/stats/by-environment Estadísticas agrupadas por ambiente y estado
DocumentsSentApi getSentDocumentStatusOptions GET /documents/status-options Opciones de filtro de estado disponibles
DocumentsSentApi getSentDocumentXml GET /documents/sent/{id}/xml Descargar XML del documento por ID
DocumentsSentApi listSentDocuments GET /documents/sent Listar documentos enviados
ECFSubmissionApi getEcfStats GET /{environment}/ecf/responses/stats Obtener estadísticas de envíos (últimos 30 días)
ECFSubmissionApi getEcfStatus GET /{environment}/ecf/status/{id} Consultar estado del documento por ID interno
ECFSubmissionApi getEcfSubmissionHistory GET /{environment}/ecf/responses/history Historial de envíos (paginado)
ECFSubmissionApi submitEcf POST /{environment}/ecf/submit Enviar documento e-CF a la DGII
ReportsApi export606 GET /dgii/606/export Exportar Formato 606 (Compras)
ReportsApi exportSentDocuments GET /dgii/sent/export Exportar reporte de documentos enviados
TaxSequencesApi createTaxSequence POST /tax-sequences/create Crear nueva secuencia de NCF
TaxSequencesApi getNextNumber GET /tax-sequences/next Obtener siguiente número fiscal disponible
TaxSequencesApi listTaxSequences GET /tax-sequences Listar secuencias de NCF
TaxSequencesApi updateTaxSequence PATCH /tax-sequences/update Actualizar secuencia de NCF
TaxSequencesApi voidTaxSequence POST /tax-sequences/void Anular rango de números fiscales
WebhookConfigurationApi getWebhook GET /{rnc}/webhooks/{webhookId} Detalle de un webhook
WebhookConfigurationApi getWebhookStats GET /{rnc}/webhooks/{webhookId}/stats Estadísticas de entregas del webhook
WebhookConfigurationApi listWebhooks GET /{rnc}/webhooks Listar configuraciones de webhooks

Models

Authorization

Authentication schemes defined for the API:

bearerAuth

oauth2

Tests

To run the tests, use:

Author

[email protected]

About this package

This PHP package is automatically generated by the OpenAPI Generator project:


All versions of ecf-sdk-php with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
ext-curl Version *
ext-json Version *
ext-mbstring Version *
guzzlehttp/guzzle Version ^7.3
guzzlehttp/psr7 Version ^1.7 || ^2.0
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 pronesoft-rd/ecf-sdk-php contains the following files

Loading the files please wait ...