A package for creating simple JDF messages
JDF is an XML standard used to send files to digital printers.
composer require japseyz/simple-jdf
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());
Thanks to Joe Pritchard for his JoePritchard/jdf package which this is based upon.