japseyz / simple-jdf
A package for creating simple JDF messages
Installs: 1 831
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 2
Forks: 2
pkg:composer/japseyz/simple-jdf
Requires
- php: ^7.4||^8.0
- ext-curl: *
Requires (Dev)
- orchestra/testbench: ^5.3
- phpunit/phpunit: ^9.2
This package is auto-updated.
Last update: 2023-08-06 22:56:08 UTC
README
A package for creating simple JDF messages
JDF is an XML standard used to send files to digital printers.
Installation
composer require japseyz/simple-jdf
Usage
Create a new JDF file
// instantiate a Job
$job = new \JapSeyz\SimpleJDF\Job();
// add a new print file to the Job
$job->setPrintFile('http://absolute/path/to/file.pdf');
// save the raw JDF to a file
file_put_contents('filename.jdf', $job->asXML());
Credits
Thanks to Joe Pritchard for his JoePritchard/jdf package which this is based upon.