2017 © Pedro Peláez
 

library phantom-pdf

A Package for generating PDF files using PhantomJS, which fork from danielboendergaard/phantom-pdf

image

antking/phantom-pdf

A Package for generating PDF files using PhantomJS, which fork from danielboendergaard/phantom-pdf

  • Monday, July 20, 2015
  • by TrungVuAnt
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1,927 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 19 Forks
  • 0 Open issues
  • 14 Versions
  • 3 % Grown

The README.md

Phantom PDF

A Package for generating PDF files using PhantomJS. The package is framework agnostic, but provides integration with Laravel 4/5., (*1)

Notice: This package only works on 64-bit Linux operating systems., (*2)

Installation

Run composer require antking/phantom-pdf, (*3)

Laravel 4 Installation (optional)

Add PhantomPdfServiceProvider in the providers array in app/config/app.php, (*4)

'providers' => [
  ...
  'PhantomPdf\Laravel\PhantomPdfServiceProvider'
]

Laravel 5 Installation (optional)

Add Laravel5ServiceProvider in the providers array in config/app.php, (*5)

'providers' => [
  ...
  'PhantomPdf\Laravel\Laravel5ServiceProvider'
]

Laravel 4/5 Facade usage (optional)

Add the facade to the aliases array in app/config/app.php (optional), (*6)

'aliases' => [
  ...
  'PDF' => 'PhantomPdf\Laravel\PDFFacade'
]

Usage with Laravel

class SampleController extends Controller {

  public function index()
  {
    $view = View::make('index');

    return PDF::createFromView($view, 'filename.pdf');
  }

  public function save()
  {
      $view = View::make('index');

      PDF::saveFromView($view, 'path/filename.pdf');
  }
}

Usage outside Laravel


$pdf = new PdfGenerator; // Set a writable path for temporary files $pdf->setStoragePath('storage/path'); // Saves the PDF as a file $pdf->saveFromView($html, 'filename.pdf'); // Returns a Symfony\Component\HttpFoundation\BinaryFileResponse return $pdf->createFromView($html, 'filename.pdf');

The Versions

20/07 2015

dev-master

9999999-dev

A Package for generating PDF files using PhantomJS, which fork from danielboendergaard/phantom-pdf

  Sources   Download

MIT

The Requires

 

by Trung Vu

laravel html pdf

10/07 2015

dev-phantomjs2

dev-phantomjs2

A Package for generating PDF files using PhantomJS

  Sources   Download

MIT

The Requires

 

by Daniel Bøndergaard

laravel html pdf

07/06 2015

v0.6.2

0.6.2.0

A Package for generating PDF files using PhantomJS

  Sources   Download

MIT

The Requires

 

by Daniel Bøndergaard

laravel html pdf

18/03 2015

v0.6.1

0.6.1.0

A Package for generating PDF files using PhantomJS

  Sources   Download

MIT

The Requires

 

by Daniel Bøndergaard

laravel html pdf

09/03 2015

v0.6.0

0.6.0.0

A Package for generating PDF files using PhantomJS

  Sources   Download

MIT

The Requires

 

by Daniel Bøndergaard

laravel html pdf

09/03 2015

v0.5.0

0.5.0.0

A Package for generating PDF files using PhantomJS

  Sources   Download

MIT

The Requires

 

by Daniel Bøndergaard

laravel html pdf

09/03 2015

v0.4.0

0.4.0.0

A Package for generating PDF files using PhantomJS

  Sources   Download

MIT

The Requires

 

by Daniel Bøndergaard

laravel html pdf

19/02 2015

v0.3.1

0.3.1.0

A Package for generating PDF files using PhantomJS

  Sources   Download

MIT

The Requires

 

by Daniel Bøndergaard

laravel html pdf

19/02 2015

v0.3.0

0.3.0.0

A Package for generating PDF files using PhantomJS

  Sources   Download

MIT

The Requires

 

by Daniel Bøndergaard

laravel html pdf

19/02 2015

v0.2.1

0.2.1.0

A Package for generating PDF files using PhantomJS

  Sources   Download

MIT

The Requires

 

by Daniel Bøndergaard

laravel html pdf

14/09 2014

v0.2.0

0.2.0.0

A Package for generating PDF files using PhantomJS

  Sources   Download

MIT

The Requires

 

by Daniel Bøndergaard

laravel html pdf

03/06 2014

v0.1.0

0.1.0.0

A Package for generating PDF files using PhantomJS

  Sources   Download

MIT

The Requires

 

by Daniel Bøndergaard

laravel html pdf

28/05 2014

v0.0.2

0.0.2.0

A Package for generating PDF files using PhantomJS

  Sources   Download

MIT

The Requires

 

by Daniel Bøndergaard

laravel html pdf

26/05 2014

v0.0.1

0.0.1.0

A Package for generating PDF files using PhantomJS

  Sources   Download

MIT

The Requires

 

by Daniel Bøndergaard

laravel html pdf