Download the PHP package spacetab-io/wkhtmltopdf without Composer
On this page you can find all versions of the php package spacetab-io/wkhtmltopdf. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download spacetab-io/wkhtmltopdf
More information about spacetab-io/wkhtmltopdf
Files in spacetab-io/wkhtmltopdf
Package wkhtmltopdf
Short Description Non-blocking PHP wrapper for wkhtmltopdf built with AMP.
License MIT
Informations about the package wkhtmltopdf
Non-blocking WkHTMLtoPDF
Non-blocking PHP wrapper for wkhtmltopdf
and wkhtmltoimage
built with AMP.
Table of contents
- Features
- Why?
- Installation
- Usage
- On your machine
- Simple cases
- Parallel
- Option Groups
- Docker
- On your machine
- License
Features
- An elegant interface to usage
- Create PDF files from HTML or URI strings
- Create Image files from HTML or URI string
- Faster than others because can be run in parallel (native)
- In-the-box your can use
OptionGroup
feature to group options for different cases
Why
Existing wrappers are slow, uses blocking API and does not have a normal object-oriented interface (for options).
It prevents to write fast and more elegant programming code.
Installation
Usage
On your machine
Simple cases
-
Create a PDF file from HTML string and save it to current directory:
-
Create a PDF file from URI and save it to current directory:
- Create a PDF file with custom options:
Note: By default uses UTF-8
encoding.
Parallel
It simple! Right?
Option Groups
So, if you work with many reports or create PDF files with set of different options you can be attempt to use option groups. Sample:
Docker
For usage in Docker your can like to use this image: https://github.com/spacetab-io/docker-amphp-php
This library tested in Docker container above in Circle CI.
License
The MIT License
Copyright © 2021 spacetab.io, Inc. https://spacetab.io
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
All versions of wkhtmltopdf with dependencies
amphp/byte-stream Version ^1.7
amphp/file Version ^1.0
amphp/process Version ^1.1
league/uri Version ^6.2
psr/log Version ^1.1