A PrinceXML ServiceProvider for Silex.

Installs: 9

Dependents: 0

Suggesters: 0

Stars: 1

Watchers: 0

Forks: 0

Open Issues: 0

1.0.0 2013-05-14 07:14 UTC


Build Status

A PrinceXML ServiceProvider for Silex.


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.


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
$ php composer.phar install

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

require 'vendor/autoload.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.