Download the PHP package kinedu/cfdi-certificate without Composer
On this page you can find all versions of the php package kinedu/cfdi-certificate. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kinedu/cfdi-certificate
More information about kinedu/cfdi-certificate
Files in kinedu/cfdi-certificate
Package cfdi-certificate
Short Description Librería para decodificar los Certificados de Sello Digital (CSD) del Servicio de Administración Tributaria (SAT)
License MIT
Homepage https://github.com/Kinedu/cfdi-certificate
Informations about the package cfdi-certificate
Instalación
Instalar el paquete mediante Composer.
Uso
- Obtener Certificado Decodificado
- Número de Certificado
- Fecha Inicio de Vigencia
- Fecha de Expiración
- Guardar Certificado Decodificado
Obtener Certificado Decodificado
Se pueden decodificar dos tipos de archivo creando una instancia de Certificate
, estos pueden ser los archivos .cer
y .key
para obtener el resultado de dichos archivos solo es necesario mandar la ruta del archivo en la instancia y mandar a llamar el método decode()
en el caso de los archivos .key
es necesario mandar la contraseña como segundo parametro.
Número de Certificado
Fecha Inicio de Vigencia
Fecha de Expiración
Guardar Certificado Decodificado
Para guardar el Certificado de Sello Digital (CSD) decodificado es necesario utilizar el método save(string $filename)
con el nombre y la dirección donde se quiere guardar el archivo.
Licencia
CFDI Certificate esta bajo la Licencia MIT, si quieres saber más al respecto puedes ver el archivo de Licencia que se encuentra en este mismo repositorio.