Download the PHP package ambersive/documentviewer without Composer
On this page you can find all versions of the php package ambersive/documentviewer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download ambersive/documentviewer
More information about ambersive/documentviewer
Files in ambersive/documentviewer
Package documentviewer
Short Description Laravel package to create beautiful printable documents. We recommend the use with the ambersive/pdfprinter package to create documents.
License MIT
Informations about the package documentviewer
Document viewer
The goal of this project is the attemp to provide a helper functionality for creating beautiful, printable and secure documents.
Installation
Usage
Step 1: Create a printable
Step 2: Register the document viewer
Define a route in your desired router. Please be aware that default laravel middleware for web and api might require modifications there (eg for the post request).
The signed attribute will always be in effect for the get request of the document.
If you do not want a upload leave the upload class empty or null.
Step 3: Modifiy the Class
The command above will create Printable Class in the folder Printable within app_path
First of all you should define data which is present or required in the specific blade file.
Then you should provide an uploadHandler. This will be required if you use our Laravel Package for Print generation and the Print-API.
Step 4: Modify the blade file
The make command also creates a blade file within the resource folder. It will come with some basic scaffold settings so you will be able to create beautiful documents in no time.
If you want to create a custom blade file make sure you extend it with our base blade. Otherwise the enhanced view optimizations won't work.
A full example might look like:
Need a way to create PDF files?
We created a microservice which is also open-source to create pdf files. If you need a smooth way to interact with this microservice you can use our package for that.
Security Vulnerabilities
If you discover a security vulnerability within this package, please send an e-mail to Manuel Pirker-Ihl via [email protected]. All security vulnerabilities will be promptly addressed.
License
This package is open-sourced software licensed under the MIT license.
All versions of documentviewer with dependencies
phlak/semver Version ^3.2
guzzlehttp/guzzle Version ^6.5|7.*