Download the PHP package elysio/easy-pdf without Composer

On this page you can find all versions of the php package elysio/easy-pdf. 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 easy-pdf

EasyPdf

EasyPdf is a library that enables the creation of PDFs using Blade templates and the Mpdf library. It provides an easy-to-use interface for generating PDFs from Blade views, with options for saving or streaming the generated PDF.

Features

Installation

You can install the package via Composer:

Usage

Initialize the EasyPdf instance

To initialize the EasyPdf class, you can either use the constructor directly or the static init method.

Generate a PDF

You can generate a PDF from a Blade view by calling the makePdf method. The method takes the name of the Blade view and an optional array of data to be passed to the view.

This will return an Mpdf instance, which you can use for further operations (e.g., saving or streaming the PDF).

Save the PDF

To save the generated PDF to a file, use the savePdf method:

Stream the PDF

To stream the generated PDF directly to the browser, use the streamPdf method:

Configuration

The EasyPdf class allows you to specify custom paths for the Blade views and cache directories when initializing the instance.

Dependencies

Development

To run tests during development, use the following command:

This will execute the tests using Pest.

License

MIT License. See the LICENSE file for more information.

Author

Elysio Martins | Refaltor
Email: [email protected]


All versions of easy-pdf with dependencies

PHP Build Version
Package Version
Requires mpdf/mpdf Version ^8.2
eftec/bladeone Version ^4.16
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 elysio/easy-pdf contains the following files

Loading the files please wait ....