Download the PHP package razvan171514/pdf-gen without Composer

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

pdf-gen

A laravel package for pdf generation

Require this package in your composer.json and update composer. This will download the package and the folowing libraries also:

Installation

Laravel 7.x

In the file an alias can be added for ease of use when importing the facade.

Publishing configuration

The defaults configuration settings are set in . Copy this file to your own config directory to modify the values. You can publish the config using this command:

The configuration file contains the options for the setting of this package such as driver configuration and configuration for specific drivers (ex. dompdf).

Here is allso configured the path to the templates directory and the path where the generated pdfs will be stored. Insted of the default hardcoded path the base_path helper can be used

Note: The output folder has to exist otherwose an exception will be thrown

Usage

The havy lifting of the entire package is done by the witch is resolving the configuration in the file and returns the desired pdf file.

The method accepts tow arguments:

  1. The template file (the supported types are html, markdown, view).
  2. An array with tow elements: name and mode. The name key holds the output file name and the mode key holds the action that will be performed.

Note: The second argument is optional and if it's not present the name key will default to and the mode key to

Modes:

Note: For the dompdf driver only the mode is not available

Examples:

Note: The import statement can be changed with only if the alias is added to file

Note: The second argument accepted by the generate method can be passed with only one of the two keys (the other one will defaulted with it's default value)

License

razvan171514/pdf-gen is open-sourced software licensed under the MIT license


All versions of pdf-gen with dependencies

PHP Build Version
Package Version
Requires mpdf/mpdf Version ^8.0
erusev/parsedown Version ^1.7
dompdf/dompdf Version ^0.8.5
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 razvan171514/pdf-gen contains the following files

Loading the files please wait ....