Skip to content

Latest commit

 

History

History
52 lines (36 loc) · 1.66 KB

README.md

File metadata and controls

52 lines (36 loc) · 1.66 KB

PrinceXMLPhp

Build Status Latest Stable Version Total Downloads License

PrinceXML PHP5 wrapper, converted to follow PSR-0 conventions.

Fetch

The recommended way to install PrinceXMLPhp is through composer.

Just create a composer.json file for your project:

{
    "require": {
        "gridonic/princexml-php": "*"
    }
}

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
use PrinceXMLPhp\PrinceWrapper;

$prince = new PrinceWrapper('/path/to/prince/binary');

// for instance methods, see the original library documentation
// @see lib/readme.html

License

The PrinceXMLPhp wrapper is licensed under the MIT license. The original library from is taken from the Prince Website and subject to the license by YesLogic Pty. Ltd. A Github repository for the original library can be found at https://github.com/yeslogic/prince-tools.