Download the PHP package verumconsilium/laravel-browsershot without Composer

On this page you can find all versions of the php package verumconsilium/laravel-browsershot. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-browsershot

Browsershot wrapper for Laravel 5

This package takes advantage of Google Chrome's Headless mode to take screenshots and generate PDFs from websites, views and raw html

Build Status Coverage Status Latest Stable Version Latest Unstable Version Total Downloads License

Requirements

You can install Puppeteer in your project via NPM:

Or you could opt to just install it globally

On a Forge provisioned Ubuntu 16.04 server you can install the latest stable version of Chrome like this:

Installation

Install the package through composer

After the package is installed the service provider will be automatically discovered and two new Facades PDF and Screenshot will be available

Usage

The recommended way to use this package is through its Facades

PDF

Generating a PDF from a view and returning it inline

You can chain all the methods available in the browsershot master library

Returning the PDF as a download

You can pass the custom file name and additional headers the response will have to the inline and download methods like

Persisting PDF to disk

If you would like to save the generated pdf file to your storage disk you can call the store or storeAs method

This will use the default storage driver to store the pdf in the pdfs/ folder giving it a unique name. If you would like to specify the name you can call de storeAs method

Screenshots

Screenshots are created the same way as PDFs just change the facade to Screenshot

Generating screenshots as JPG/JPEG

By default screenshots will be taken as PNG format if you would like to use JPG instead call the useJPG() method


All versions of laravel-browsershot with dependencies

PHP Build Version
Package Version
Requires spatie/browsershot Version ^3.19
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package verumconsilium/laravel-browsershot contains the following files

Loading the files please wait ....