gridonic/prince-service-provider

v2.0.1 2016-10-09 07:55 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.

composer require gridonic/prince-service-provider

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.