magdev / php-assimp-silex-provider
此包已被放弃且不再维护。未建议替代包。
Silex 服务提供者 for magdev/php-assimp
dev-master
2014-08-02 06:03 UTC
Requires
- php: >=5.3.3
- magdev/php-assimp: dev-master
- silex/silex: ~1.0
This package is auto-updated.
Last update: 2020-02-05 08:34:32 UTC
README
##安装
使用 composer 安装
{ "require": { "magdev/php-assimp-silex-provider": "dev-master" } }
并且在此包在 Packagist 注册之前,添加仓库
{ "repositories" : [{ "type" : "vcs", "url" : "git@github.com:magdev/php-assimp-silex-provider.git" } ] }
##使用
###注册提供者
use Silex\Application; use Assimp\Silex\Provider\AssimpServiceProvider; $app = new Application(); $app->register(new AssimpServiceProvider(), array( 'assimp.bin_path' => '/path/to/assimp' ));
###使用服务
use Assimp\Command\Verbs\ListExtensionsVerb; $verb = new ListExtensionsVerb(); $app['assimp']->execute($verb); print_r($verb);
##许可证
本软件遵循 MIT 许可证发布