New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

appoly/document-generator

A package to generate pdfs and pngs from urls or html sent to a lambda function
1,097
Install
composer require appoly/document-generator
Latest Version:1.2.3
Laravel:4 – 9
License:MIT
Last Updated:Jan 15, 2026
Links: GitHub  ·  Packagist
Maintainer: Mezzair

Appoly Document Generator

This package will generate PDFs and PNGs from websites.

Installation

composer require appoly/document-generator

Usage


use  Appoly\DocumentGenerator\Facades\DocumentGenerator;

$png  =  DocumentGenerator::url('https://www.appoly.co.uk')
		->png()
		->get();

Options

Option Description
->pdf() sets the file to .pdf
->png() sets the file to .png
->url($url) sets the url that will be rendered
->html($html) sets the html that will be rendered
->height($h) sets the files height
->width($w) sets the files width
->showBackground($i = true) when rendering a PDF, Set to true to print background graphics
->filename($name) sets the file name - defaults to random.filetype

API Key

A api key is required. This can be defined in your .env

DOCUMENT_GENERATOR_API_KEY

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

665,354,487 9,703
laravel/framework

The Laravel Framework.

625,568,548 34,998
laravel/tinker

Powerful REPL for the Laravel framework.

539,265,140 7,441
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

458,029,405 607
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

424,642,029 4,662

Version History

Version Released Laravel License
1.2.3 * MIT
1.2.2 ^8.61 MIT
1.2.1 ^8.61 MIT
1.2.0 ^8.61 MIT
1.1.2 ^8.61 MIT