gridonic / princexml-php
PrinceXML PHP5 包装器,已转换为遵循PSR-0标准。
1.2.1
2017-04-20 09:36 UTC
Requires
- php: >=5.3.0
This package is not auto-updated.
Last update: 2024-09-14 14:03:13 UTC
README
PrinceXML PHP5 包装器,已转换为遵循PSR-0约定。
获取
安装 PrinceXMLPhp 的推荐方法是 通过 composer。
只需为您的项目创建一个 composer.json 文件
{ "require": { "gridonic/princexml-php": "*" } }
然后运行这两个命令来安装它
$ wget https://getcomposer.org.cn/composer.phar
$ php composer.phar install
现在您可以添加自动加载器,并将能够访问库
<?php require 'vendor/autoload.php';
用法
<?php use PrinceXMLPhp\PrinceWrapper; $prince = new PrinceWrapper('/path/to/prince/binary'); // for instance methods, see the original library documentation // @see lib/readme.html
许可证
PrinceXMLPhp 包装器采用MIT许可证。原始库来自 Prince 网站,并受YesLogic Pty. Ltd. 许可证约束。原始库的GitHub存储库可以在 https://github.com/yeslogic/prince-tools 找到。