gridonic/prince-service-provider

A PrinceXML ServiceProvider for Silex.

1.0.0 2013-05-14 07:14 UTC

README

Build Status

A PrinceXML ServiceProvider for Silex.

Requirements

This ServiceProvider works with the PrinceXML PHP wrapper provided by YesLogic Pty. Ltd. and depends on the executable distributed on the product website. Internally, it uses a PSR-0 conform wrapper distributed as a composer package.

Installation

The recommended way to install PrinceServiceProvider is through composer.

Just create a composer.json file for your project:

{
    "require": {
        "gridonic/prince-service-provider": "*"
    }
}

And run these two commands to install it:

$ wget http://getcomposer.org/composer.phar
$ php composer.phar install

Now you can add the autoloader, and you will have access to the library:

<?php
require 'vendor/autoload.php';

Usage

<?php
$app->register(new PrinceServiceProvider, array(
    'prince.binary' => '/usr/local/bin/prince'
));

$app['prince']->convert_file($xmlPath, $msgs = array());

For more information about the prince library, please read the documentation provided in the original PHP wrapper distribution.