2017 © Pedro Peláez
 

library laravel-pdf

Laravel wrapper for mPDF 7.0

image

alhoqbani/laravel-pdf

Laravel wrapper for mPDF 7.0

  • Monday, November 20, 2017
  • by alhoqbani
  • Repository
  • 1 Watchers
  • 0 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Laravel wrapper for mPDF 7.0

Latest Version on Packagist Build Status SensioLabsInsight Quality Score Total Downloads, (*1)

Laravel wrapper for mPDF 7.0, (*2)

UNDER DEVELOPMENT. Do NOT use for production

Installation

You can install the package via composer:, (*3)

composer require 'alhoqbani/laravel-pdf:@dev'

Usage

Start by publishing the config file:, (*4)

php artisan vendor:publish --provider "Alhoqbani\PDF\PDFServiceProvider"

Edit the config file. You can add any extra configuration to be passed to the Mpdf constructor., (*5)

To us the Mpdf library directly, you can get a pre-configured instance of Mpdf, (*6)

<?php

        $mpdf = \PDF::getMpdf();

        $mpdf->writeHTML('<h1>Hello World</h1>');

        return $mpdf->output();

// TODO, (*7)

Testing

bash composer test, (*8)

Changelog

Please see CHANGELOG for more information what has changed recently., (*9)

Contributing

Please see CONTRIBUTING for details., (*10)

Security

If you discover any security related issues, please email h.alhoqbani@gmail.com instead of using the issue tracker., (*11)

Credits

Built using Spatie.be skeleton, (*12)

License

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

The Versions