emanueleminotto / embedly-bundle
embed.ly 库的 Symfony 2 扩展包
1.1.0
2015-04-22 12:12 UTC
Requires
- emanueleminotto/embedly: ~1.1
Requires (Dev)
- phpunit/phpunit: ~4.5
- symfony/framework-bundle: ~2.6
- symfony/twig-bundle: ~2.6
This package is auto-updated.
Last update: 2024-08-28 06:58:07 UTC
README
为 Symfony 2 提供 embed.ly 库的扩展包。
API: emanueleminotto.github.io/EmbedlyBundle
步骤 1: 下载扩展包
打开命令行,进入您的项目目录,并执行以下命令以下载此扩展包的最新稳定版本
$ composer require emanueleminotto/embedly-bundle
此命令需要您全局安装了 Composer,具体请参阅 Composer 文档中的安装章节。
步骤 2: 启用扩展包
然后,通过在项目的 app/AppKernel.php
文件中添加以下行来启用扩展包
// app/AppKernel.php // ... class AppKernel extends Kernel { public function registerBundles() { $bundles = array( // ... new EmanueleMinotto\EmbedlyBundle\EmbedlyBundle(), ); } }
使用方法
无需更多要求,您现在可以使用 embedly
服务和 Twig 扩展。
许可协议
此扩展包遵循 MIT 许可协议。请参阅扩展包中的完整许可协议。
Resources/meta/LICENSE