PHP code example of dev-lancer / jpk-generator
1. Go to this page and download the library: Download dev-lancer/jpk-generator 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/ */
dev-lancer / jpk-generator example snippets
use DevLancer\JPKGenerator\{Document, XmlGenerator};
$document = new Document();
// populate $document with data …
$xml = (new XmlGenerator())->generate($document);
file_put_contents('jpk.xml', $xml);
bash
docker compose run --rm app /app/your_script.php