2017 © Pedro PelĂĄez
 

library firmar-factura-e

PHP bridge to Sign FacturaE XMLs

image

cossou/firmar-factura-e

PHP bridge to Sign FacturaE XMLs

  • Monday, May 15, 2017
  • by cossou
  • Repository
  • 1 Watchers
  • 1 Stars
  • 499 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 2 Forks
  • 2 Open issues
  • 1 Versions
  • 5 % Grown

The README.md

Firmar FacturaE

Sign a FacturaE XML with a certificate (.p12)., (*1)

How it works

Creates a signed XML .xsig file with a correspondent certificate in the same directory as the XML file., (*2)

NOTE: The file is created in the same directory of the XML file with the .xsig appended to the end of filename., (*3)

Install

Use composer:, (*4)

$ composer require cossou/firmar-factura-e:dev-master

Example

<?php

$firmador = new FirmarFacturaE\Firmador;

try {
    $file = $firmador->firmar('invoice.xml', 'cert.p12', 'password');
} catch (Exception $e) {
    echo $e->getMessage();
}

echo $file; // 'path/to/invoice.xml.xsig' (no content only path)

Requirements

  • Java
  • PHP exec() function
  • PKCS12 certificate and password

License

MIT, (*5)

The Versions

15/05 2017

dev-master

9999999-dev https://github.com/cossou/FirmarFacturaE

PHP bridge to Sign FacturaE XMLs

  Sources   Download

MIT

by Hélder Duarte

pdf java facturae