Download the PHP package heyday/silverstripe-wkhtml without Composer
On this page you can find all versions of the php package heyday/silverstripe-wkhtml. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download heyday/silverstripe-wkhtml
More information about heyday/silverstripe-wkhtml
Files in heyday/silverstripe-wkhtml
Download heyday/silverstripe-wkhtml
More information about heyday/silverstripe-wkhtml
Files in heyday/silverstripe-wkhtml
Vendor heyday
Package silverstripe-wkhtml
Short Description Provides Wkhtml functionality in SilverStripe
License MIT
Package silverstripe-wkhtml
Short Description Provides Wkhtml functionality in SilverStripe
License MIT
Please rate this library. Is it a good library?
Informations about the package silverstripe-wkhtml
Silverstripe Wkhtml - by Heyday
This module provides a SilverStripe-centric wrapper for Snappy and wkhtml.
Requirements
- Wkhtml binary either wkhtmltopdf or wkhtmltoimage
Installation
$ composer require "heyday/silverstripe-wkhtml"
How to use
Four things are required to generate a pdf or an image:
Knp\Snappy\GeneratorInterface
The wrapper for wkhtmltopdf or wkhtmltoimageHeyday\SilverStripe\WkHtml\Input\InputInterface
to provide the htmlHeyday\SilverStripe\WkHtml\Output\OutputInterface
output the pdf or image in different waysHeyday\SilverStripe\WkHtml\Generator
to glue everything together
Available Inputs
- Request (generates content from a request)
- TextString (content is specified by a string)
- Template (generates content from a SilverStripe template)
- Url (generates content from a GET request to a Url)
- Viewer (generates content from an SSViewer instance)
Available Outputs
- Browser (outputs to the browser)
- File (outputs to a file)
- RandomFile (outputs to a random filename)
- TextString (outputs to a string)
Available Generators
- Image
Examples
Full example (from a controller action)
Inputs
Request
String
Template
Viewer
Url
Outputs
Browser
File
Random File
String
Unit Testing
License
This project is licensed under an MIT license
All versions of silverstripe-wkhtml with dependencies
PHP Build Version
Package Version
The package heyday/silverstripe-wkhtml contains the following files
Loading the files please wait ....