2017 © Pedro Peláez
 

library laravel-pdf

Provides the HTML2PDF functionality using the wkhtmltopdf library

image

ignited/laravel-pdf

Provides the HTML2PDF functionality using the wkhtmltopdf library

  • Saturday, December 14, 2013
  • by alexw23
  • Repository
  • 1 Watchers
  • 24 Stars
  • 11,100 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 15 Forks
  • 5 Open issues
  • 4 Versions
  • 5 % Grown

The README.md

[ABANDONED] Laravel HTML 2 PDF

Latest Stable Version Total Downloads, (*1)

A simple Laravel 4 service provider for including the wkhtmltopdf library., (*2)

Installation

The Laravel PDF Service Provider can be installed via Composer by requiring the ignited/laravel-pdf package in your project's composer.json., (*3)

{
    "require": {
        "ignited/laravel-pdf": "1.*"
    }
}

Note (you must also include wkhtmltopdf binaries)

32-bit systems, (*4)

{
    "require": {
        "h4cc/wkhtmltopdf-i386": "*"
    }
}

64-bit systems, (*5)

{
    "require": {
        "h4cc/wkhtmltopdf-amd64": "*"
    }
}

You can include both of these if you need., (*6)

Configuration

To use the PDF Service Provider, you must register the provider when bootstrapping your Laravel application., (*7)

Publish the package configuration using Artisan., (*8)

php artisan config:publish ignited/laravel-pdf

Update your settings in the generated app/config/packages/ignited/laravel-pdf configuration file., (*9)

Uncomment the relevant binary., (*10)

32-bit systems, (*11)

return array(
    # Uncomment for 32-bit systems
    'bin' => base_path() . '/vendor/h4cc/wkhtmltopdf-i386/bin/wkhtmltopdf-i386'

64-bit systems, (*12)

return array(
    # Uncomment for 64-bit systems
    'bin' => base_path() . '/vendor/h4cc/wkhtmltopdf-amd64/bin/wkhtmltopdf-amd64'

Find the providers key in your app/config/app.php and register the AWS Service Provider., (*13)

    'providers' => array(
        // ...
        'Ignited\Pdf\PdfServiceProvider',
    )

Find the aliases key in your app/config/app.php and add the AWS facade alias., (*14)

    'aliases' => array(
        // ...
        'PDF'             => 'Ignited\Pdf\Facades\Pdf'
    )

Usage

In routes.php, (*15)

Route::get('/', function() {
    $pdf = PDF::make();
    $pdf->addPage('<html><head></head><body><b>Hello World</b></body></html>');
    $pdf->send();
});

The Versions

14/12 2013

dev-master

9999999-dev

Provides the HTML2PDF functionality using the wkhtmltopdf library

  Sources   Download

MIT

The Requires

 

by Alex Whiteside

laravel pdf laravel4 wkhtmltopdf

14/12 2013

1.0.2

1.0.2.0

Provides the HTML2PDF functionality using the wkhtmltopdf library

  Sources   Download

MIT

The Requires

 

by Alex Whiteside

laravel pdf laravel4 wkhtmltopdf

15/10 2013

1.0.1

1.0.1.0

Provides the HTML2PDF functionality using the wkhtmltopdf library

  Sources   Download

MIT

The Requires

 

by Alex Whiteside

laravel pdf laravel4 wkhtmltopdf

15/10 2013

1.0.0

1.0.0.0

Provides the HTML2PDF functionality using the wkhtmltopdf library

  Sources   Download

MIT

The Requires

 

by Alex Whiteside

laravel pdf laravel4 wkhtmltopdf