PHP code example of kinedu / cfdi-pac
1. Go to this page and download the library: Download kinedu/cfdi-pac library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
kinedu / cfdi-pac example snippets
use Kinedu\CfdiPac\PAC;
$username = 'Kinedu';
$password = '123456789A';
$xml = file_get_contents('./K279101.xml');
$isTest = true;
$pac = new PAC($username, $password, $xml, $isTest);
$pac->useInvoiceOne()->save('./cfdi/K279101.xml');