hirviid / hirviid-cleeng-bundle
此包提供了Cleeng PHP SDK简单集成到Symfony2的方法
1.0.0
2014-02-12 07:02 UTC
Requires
- php: >=5.2.0
- cleeng/cleeng-php-sdk: >= 3.0.0
This package is not auto-updated.
Last update: 2024-09-24 06:46:37 UTC
README
此包提供了将"Cleeng PHP SDK"简单集成到Symfony2的方法。Cleeng为任何网站提供类似iTunes的购买体验,从视频平台到报纸和现场音乐会。您可以在http://cleeng.com的专用页面找到更多关于Cleeng的信息。
<?php $cleengApi = $this->container->get('cleeng')->api;
此包提供了一个新的cleeng
服务,该服务返回一个Cleeng_Api
实例。
安装
步骤1) 使用composer获取包(symfony 2.1模式)
在composer.json中添加(见http://getcomposer.org/)
"require" : {
// ...
"hirviid/hirviid-cleeng-bundle": "dev-master",
}
步骤2) 注册包
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Hirviid\Bundle\CleengBundle\HirviidCleengBundle(), // ... ); }
文档
此包的文档可在包的Resources/doc
目录中找到
就是这样!您现在可以使用symfony2使用Cleeng了。