Download the PHP package crushjs/mini-pdf without Composer

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

Mini PDF

A lightweight, fluent PDF generator for Laravel with first-class Khmer (ខ្មែរ) support.

Features

Requirements

Installation

Optionally publish the config file:


Usage

Create a PDF

Output

Page setup

Headers, footers & page numbers

{PAGENO} and {nbpg} are replaced with the current page and the total page count. The body margins grow automatically so content never overlaps.

Force a new page in Blade:

Watermark, password & metadata

Conditionals & macros


Khmer support

Khmer text is detected automatically and rendered with full OpenType shaping (coeng subscripts, pre-base vowels, ្រ re-ordering) and dictionary-based line breaking, since Khmer has no spaces between words. Mixed Khmer and English content just works:

Khmer filenames are supported too: ->download('វិក្កយបត្រ.pdf').

Using a different Khmer font

mPDF ships with Khmer OS. To use another font, put the .ttf files in resources/fonts and register them in config/mini-pdf.php:

Custom fonts can also be used directly in CSS: font-family: battambang;.


Testing

Available assertions: assertDownloaded, assertStreamed, assertSaved, assertRendered, assertRenderedCount, assertNothingRendered, assertSee.

The fake still renders your Blade views (so broken templates fail the test) but skips PDF generation, so it's fast.


Advanced

Pass any mPDF option, or work with the mPDF instance directly:

License

MIT

mini-pdf


All versions of mini-pdf with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
mpdf/mpdf Version ^8.2
illuminate/filesystem Version ^10.0|^11.0|^12.0|^13.0
illuminate/http Version ^10.0|^11.0|^12.0|^13.0
illuminate/support Version ^10.0|^11.0|^12.0|^13.0
illuminate/view Version ^10.0|^11.0|^12.0|^13.0
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 crushjs/mini-pdf contains the following files

Loading the files please wait ...