https://github.com/gridonic/princeserviceprovider
A PrinceXML ServiceProvider for Silex.
https://github.com/gridonic/princeserviceprovider
Last synced: over 1 year ago
JSON representation
A PrinceXML ServiceProvider for Silex.
- Host: GitHub
- URL: https://github.com/gridonic/princeserviceprovider
- Owner: gridonic
- License: mit
- Created: 2012-06-02T09:00:51.000Z (about 14 years ago)
- Default Branch: master
- Last Pushed: 2016-10-09T07:57:26.000Z (over 9 years ago)
- Last Synced: 2025-01-24T17:47:20.728Z (over 1 year ago)
- Language: PHP
- Size: 10.7 KB
- Stars: 1
- Watchers: 9
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
PrinceServiceProvider
=====================
[](https://travis-ci.org/gridonic/PrinceServiceProvider)
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](http://www.princexml.com/download). Internally, it uses a [PSR-0 conform wrapper](https://github.com/gridonic/PrinceXMLPhp) distributed as a composer package.
Installation
------------
The recommended way to install PrinceServiceProvider is through [composer](http://packagist.org).
```bash
composer require gridonic/prince-service-provider
```
Usage
-----
```php
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](http://www.princexml.com/download/wrappers).