ACID-Solutions / laravel-phantom by daniel-acid

1,709
0
4
Package Data
Maintainer Username: daniel-acid
Maintainer Contact: contact@acid.fr (Daniel LUCAS)
Package Create Date: 2015-05-26
Package Last Update: 2018-05-22
Language: PHP
License: Unknown
Last Refreshed: 2024-11-22 03:17:58
Package Statistics
Total Downloads: 1,709
Monthly Downloads: 2
Daily Downloads: 0
Total Stars: 0
Total Watchers: 4
Total Forks: 0
Total Open Issues: 0

Laravel Phantom

$pngGenerator = new LaravelPhantom();

$capture = $pngGenerator->open(url) ->filetype('png') ->size(1200,675) ->capture();

if ( $capture->success() ) { return Response::download($capture->file()); } else { return $capture->error(); }

$pdfGenerator = new LaravelPhantom();