Download the PHP package hamdallah90/easy-laravel-pdf without Composer

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

Easy Laravel PDF

Overview

Easy Laravel PDF is a Laravel package that facilitates PDF generation within Laravel applications. This package utilizes a Node.js service, node-html-to-pdf, which can be run locally or via Docker to convert HTML to PDF.

Installation

Prerequisites

Installing the Package

  1. Add the Package via Composer:

  2. Publish Configuration: Laravel's package discovery will automatically register the service provider. To publish the package configuration, run:

Configuration

Edit the published configuration file in config/easy-laravel-pdf.php to adjust settings like default PDF options.

Using the Package

EasyLaravelPdf offers a variety of methods to generate PDF files. Here's how to use them in your Laravel applications:

Load and Render a View

Load HTML Content Directly

To load raw HTML content into the PDF generator:

Get the PDF as an UploadedFile

To get the PDF as an UploadedFile, which can be useful for testing or further manipulation:

Stream the PDF Directly to the Browser

To stream the PDF directly to the browser, which is useful for inline viewing:

Configuration and Customization

You can configure puppeteer options and launch arguments for more control over the PDF generation:

Node HTML to PDF Service

This service is essential for PDF generation and can be run locally or in a Docker container.

Running Locally

  1. Navigate to the node-html-to-pdf directory.
  2. Install dependencies:

  3. Start the server:

Running with Docker

  1. Using the Dockerfile: Build the Docker image using the provided Dockerfile:

  2. Using the Pre-built Image: Alternatively, you can use a pre-built Docker image available on Docker Hub:

Support

For issues, feature requests, or contributions, please use the GitHub issues section for this repository.


All versions of easy-laravel-pdf with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^10.0||^11.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 hamdallah90/easy-laravel-pdf contains the following files

Loading the files please wait ....