Download the PHP package stitch-digital/laravel-pdfmerger without Composer

On this page you can find all versions of the php package stitch-digital/laravel-pdfmerger. 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-pdfmerger

Laravel PDFMerger

Latest Version on Packagist GitHub Tests Action Status GitHub Code Quality Action Status Total Downloads

A modern, fluent PDF merger for Laravel with full type safety and an elegant API. Merge multiple PDF files with ease using a developer-friendly interface.

Features

Requirements

Installation

Install the package via Composer:

The package will automatically register itself via Laravel's package discovery.

Publish Configuration (Optional)

You can publish the configuration file if you want to customize default settings:

Usage

Basic Example

Fluent API with Method Chaining

Selecting Specific Pages

Using Named Parameters (PHP 8.0+)

Setting Orientation

You can set orientation using strings or the Orientation enum for better IDE support and type safety:

Duplex Printing Support

Add blank pages between documents to support double-sided printing:

Working with String Content

Using URLs (Remote PDFs)

The package can automatically download and merge PDFs from remote URLs:

Downloaded PDFs are automatically stored in temporary files and cleaned up after the merge operation completes.

URL Security Configuration

URL downloads can be configured in config/pdfmerger.php:

Automatic Local Development Support:

SSL verification is automatically disabled when APP_ENV=local, making it work seamlessly with local domains like .test, .local, or self-signed certificates. No configuration needed!

For production environments, SSL verification is automatically enabled when APP_ENV=production, ensuring secure connections.

You can override this behavior in your .env if needed:

Security Notes:

Output Methods

Method Aliases for Better Readability

Adding Multiple Files at Once

Conditional Operations

Using Tap for Side Effects

Setting Custom Filename

Resetting the Merger

Error Handling

The package throws specific exceptions for different error scenarios:

Configuration

The published configuration file (config/pdfmerger.php) allows you to customize:

Extending with Macros

You can extend the package with custom methods using macros:

Upgrading from v1.x

See UPGRADING.md for detailed upgrade instructions.

Key Breaking Changes

Testing

Run the test suite:

Run with coverage:

Code Quality

Check code style:

Fix code style:

Run static analysis:

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.


All versions of laravel-pdfmerger with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/support Version ^12.0|^13.0
illuminate/http Version ^12.0|^13.0
illuminate/filesystem Version ^12.0|^13.0
setasign/fpdf Version ^1.8
setasign/fpdi Version ^2.6
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 stitch-digital/laravel-pdfmerger contains the following files

Loading the files please wait ...