betzholz/pdf-service-provider

A Pdf service provider for Silex, based on Zend_Pdf library.

dev-master 2015-09-25 13:02 UTC

This package is not auto-updated.

Last update: 2024-04-17 07:54:10 UTC


README

A Pdf Service Provider for Silex, based on ZendPdf library.

Build Status

Installation

Installation is very easy, it makes use of Composer.

Install Composer

Run this in your command line:

$ curl -s http://getcomposer.org/installer | php

Or download composer.phar into the project root.

Add PdfServiceProvider to your composer.json

"require": {
    "php": "> 5.3.3",
    "betzholz/pdf-service-provider": "dev-master"
}

Install Dependencies

Run the following command:

$ php composer.phar install

Now PdfServiceProvider is installed into your vendor directory.

Registering

$app->register(new Erivello\Silex\PdfServiceProvider());

Usage

You can access the PdfServiceProvider by calling $app['pdf.generator'].

Tests

$ php composer.phar install && phpunit

License

The PdfServiceProvider is licensed under the MIT license.