Download the PHP package smarterp-dev/pdf-template without Composer

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

PHP Tests

PDF Template Package

A Laravel package for generating PDF documents using mPDF with Khmer font support and custom templates.

Project Setup

Prerequisites

Before running tests or using the package, ensure you have:

  1. Installed all dependencies:

  2. Created the required temporary directory for mPDF:

Running Tests

You can run the test suite using any of these methods:

Test Coverage Report

To generate an HTML test coverage report, run:

This will create HTML reports in the coverage directory.

Continuous Integration

GitHub Actions workflow in .github/workflows/run-tests.yml automatically runs tests across multiple PHP and Laravel versions on push or pull request.

Extending Tests

When adding new features, please add corresponding tests in:

Installation

You can install the PDF Template package via Packagist:

1. Require the package via Composer

Run the following command in your project root:

2. Publish the package views (optional)

If you want to customize the PDF templates, you can publish the package's views to your Laravel application's resources directory:

This will copy the package views to resources/views/vendor/smarterp-dev.

To publish only the template views:

This will copy the template views to resources/views/vendor/smarterp-dev/templates.

To publish example template views:

This will copy example templates to resources/views/vendor/smarterp-dev/templates/examples.

3. Create the required temporary directory for mPDF

mPDF requires a writable temporary directory. Create it with:

4. Configuration

The package will automatically register its service provider. No manual configuration is required for basic usage.

5. Ready to Use

You can now use the package in your Laravel application. For usage examples and API documentation, refer to docs/template.md

License

MIT License. See LICENSE


All versions of pdf-template with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4|^8.0
mpdf/mpdf Version ^8.0
illuminate/http Version ^8.0|^9.0|^10.0
illuminate/support Version ^8.83
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 smarterp-dev/pdf-template contains the following files

Loading the files please wait ...