2017 © Pedro Peláez
 

library fpdf-laravel

Laravel package for FPDF.

image

crabbly/fpdf-laravel

Laravel package for FPDF.

  • Monday, January 8, 2018
  • by crabbly
  • Repository
  • 1 Watchers
  • 10 Stars
  • 1,892 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 4 Versions
  • 19 % Grown

The README.md

FPDF - Laravel

A package for Laravel to implement the FPDF class., (*1)

FPDF Official Website: www.fpdf.org, (*2)

Installation

Step 1: Composer

From the command line, run:, (*3)

composer require crabbly/fpdf-laravel

Step 2: Service Provider

For your Laravel app, open config/app.php and, within the providers array, append:, (*4)

Crabbly\Fpdf\FpdfServiceProvider::class

This will bootstrap the package into Laravel., (*5)

Usage

We can resolve the FPDF class instance out of the container:, (*6)

$pdf = app('Fpdf');

We can also instantiate it directly:, (*7)

$pdf = new Crabbly\Fpdf\Fpdf;

FPDF Documentation

For documentation manual and tutorials, please visit www.fpdf.org, (*8)

Example

Create a 'Hello World' PDF document and save it to a file in the storage folder:, (*9)

use Illuminate\Support\Facades\Storage;

//create pdf document
$pdf = app('Fpdf');
$pdf->AddPage();
$pdf->SetFont('Arial','B',16);
$pdf->Cell(40,10,'Hello World!');

//save file
Storage::put($pdf->Output('S'));

Contribution

Pull requests are welcome. Please report any issue you find in the issues page., (*10)

License

The package is free software distributed under the terms of the MIT license. FPDF is a free PHP class, you may use it for any kind of usage and modify it to suit your needs., (*11)

The Versions

08/01 2018

dev-master

9999999-dev

Laravel package for FPDF.

  Sources   Download

MIT

The Requires

 

by Rodrigo Vieira

laravel fpdf

08/01 2018

v1.0.2

1.0.2.0

Laravel package for FPDF.

  Sources   Download

MIT

The Requires

 

by Rodrigo Vieira

laravel fpdf

15/09 2016

v1.0.1

1.0.1.0

Laravel package for FPDF.

  Sources   Download

MIT

The Requires

 

by Rodrigo Vieira

laravel fpdf

15/09 2016

v1.0.0

1.0.0.0

Laravel package for FPDF.

  Sources   Download

MIT

The Requires

 

by Rodrigo Vieira

laravel fpdf