clippings/phantom-pdf
Phantom PDF
Installation
Install via composer
$ composer global require clippings/phantom-pdf
Usage
$pdf = new PdfGenerator();
// Set a writable path for temporary files
$pdf->setStoragePath('storage/path');
// Saves the PDF as a file
$pdf->saveFromView($html, 'filename.pdf');
Use setBinaryPath('path') to use another version of PhantomJS.
Customizing the conversion script
If you want to use another script to execute with PhantomJS, this it how you do it.
$pdf->useScript('path/to/script');
return $pdf->saveFromView('view');
Credits
Forked from the great https://github.com/danielboendergaard/phantom-pdf package
Copyright (c) 2015, Clippings Ltd. Refactored by Ivan Kerin as part of clippings.com
Related Packages
antking/phantom-pdf
A Package for generating PDF files using PhantomJS, which fork from danielboende...
1,997
0
Version History
| Version | Released | PHP | License |
|---|---|---|---|
| 0.12.0 | ^7.1 | MIT | |
| 0.11.1 | ^7.0 | MIT | |
| 0.11.0 | ^7.0 | MIT | |
| 0.10.1 | >=5.4.0 | MIT | |
| 0.10.0 | >=5.4.0 | MIT | |
| v0.9.0 | >=5.4.0 | MIT | |
| v0.8.0 | >=5.4.0 | MIT | |
| v0.7.2 | >=5.4.0 | MIT | |
| v0.7.1 | >=5.4.0 | MIT | |
| v0.7.0 | >=5.4.0 | MIT | |
| v0.6.2 | >=5.4.0 | MIT | |
| v0.6.1 | >=5.4.0 | MIT | |
| v0.6.0 | >=5.4.0 | MIT | |
| v0.5.0 | >=5.4.0 | MIT | |
| v0.4.0 | >=5.4.0 | MIT | |
| v0.3.1 | >=5.4.0 | MIT | |
| v0.3.0 | >=5.4.0 | MIT | |
| v0.2.1 | >=5.4.0 | MIT | |
| v0.2.0 | >=5.4.0 | MIT | |
| v0.1.0 | >=5.4.0 | MIT | |
| v0.0.2 | >=5.4.0 | MIT | |
| v0.0.1 | >=5.4.0 | MIT |



