ACID-Solutions / laravel-phantom by daniel-acid

1,707
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-04-25 15:16:11
Package Statistics
Total Downloads: 1,707
Monthly Downloads: 0
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();