Download the PHP package madarlan/pdf-bridge-php without Composer

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

PHP PDF Bridge

PDF Bridge Cover

Latest Version on Packagist GitHub Code Style Action Status PHP Version Require

A powerful and universal PHP/Laravel package for converting various document formats to PDF using multiple converters ( TCPDF, mPDF, LibreOffice). Features robust validation, comprehensive logging, and support for 15+ file formats with Laravel 8-12 support.

Description

PHP PDF Bridge provides a unified interface for document conversion to PDF using several powerful libraries:

Supported Formats

Input formats:

Output format:

โœจ Features

Installation

1. Install the package

2. Publish configuration (optional)

3. Install converters

TCPDF (installed automatically)

mPDF

LibreOffice (for DOC/DOCX/XLS/XLSX)

Advanced Features

Conversion Parameter Configuration

Working with CSV

Checking Converter Availability

Getting Information About All Converters

Checking Specific Converter

Special LibreOffice Check

Usage

Artisan Command for Quick Conversion

The package includes a convenient Artisan command for quick file conversion from the command line:

Available Command Options:

Diagnostics and Checking Examples:

Automatic Type Detection:

The command automatically detects input data type:

Configuration Examples:

In Laravel (via Facade)

In Laravel (via Dependency Injection)

Standalone Usage (without Laravel)

๐Ÿ“š Detailed Usage Examples

Basic Conversions

Text to PDF

HTML to PDF with Advanced Styling

CSV to PDF with Custom Options

Office Documents to PDF

Batch Office Document Processing

Advanced Office Document Conversion

Error Handling for Office Documents

Advanced Configuration

Custom Converter Settings

With Custom Logger

Real-World Laravel Examples

E-commerce Invoice Generation

Queue Jobs for Large Documents

Bulk Document Processing

Error Handling

Used Libraries

TCPDF

mPDF

ncjoes/office-converter

Performance and Recommendations

Converter Selection

Optimization

Testing

๐Ÿ“‹ Requirements

๐Ÿ“Š Supported Formats

Format Extension Converter Description
Text .txt TCPDF, mPDF Plain text files
HTML .html, .htm mPDF, TCPDF Web pages and HTML content
CSV .csv TCPDF, mPDF, LibreOffice Comma-separated values
Word .doc, .docx LibreOffice Microsoft Word documents
Excel .xls, .xlsx LibreOffice Microsoft Excel spreadsheets
PowerPoint .ppt, .pptx LibreOffice Microsoft PowerPoint presentations
OpenDocument .odt, .ods, .odp LibreOffice OpenDocument formats
Rich Text .rtf LibreOffice Rich Text Format

๐Ÿงช Testing

๐Ÿค Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Make your changes
  4. Add tests for your changes
  5. Ensure tests pass (composer test)
  6. Commit your changes (git commit -m 'Add amazing feature')
  7. Push to the branch (git push origin feature/amazing-feature)
  8. Open a Pull Request

๐Ÿ“ Changelog

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

๐Ÿ”’ Security

If you discover any security-related issues, please email [email protected] instead of using the issue tracker.

๐Ÿ“„ License

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

๐Ÿ†˜ Support & Troubleshooting

If you encounter issues:

  1. Check converter availability: php artisan pdf:convert --check
  2. Diagnose LibreOffice: php artisan pdf:convert --diagnose
  3. List supported formats: php artisan pdf:convert --formats
  4. Check logs: Review Laravel logs for detailed error information
  5. Validate input: Ensure files meet size and format requirements
  6. Create an issue: GitHub Issues with:
    • PHP version
    • Laravel version
    • Error messages
    • Sample code
    • Input file details

Common Issues

License

MIT License. See LICENSE file for details.

Author

Support

If you encounter problems or have questions:

  1. Check Issues
  2. Create a new Issue with detailed problem description
  3. Include PHP, Laravel and library versions

Changelog

v1.0.0

๐Ÿ† Credits


All versions of pdf-bridge-php with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
tecnickcom/tcpdf Version ^6.6
mpdf/mpdf Version ^8.2
ncjoes/office-converter Version ^1.0
illuminate/support Version ^8.0|^9.0|^10.0|^11.0|^12.0
illuminate/config Version ^8.0|^9.0|^10.0|^11.0|^12.0
psr/log Version ^1.0|^2.0|^3.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 madarlan/pdf-bridge-php contains the following files

Loading the files please wait ...