emanueleminotto/embedly-module
最新稳定版本:1.1.0
Composer 安装命令:
composer require emanueleminotto/embedly-module
包简介
Embed.ly module for Zend Framework 2
README 文档
README
An embed.ly module for Zend Framework 2 based on the Embedly library.
API: emanueleminotto.github.io/EmbedlyModule
Installation
Open a command console, enter your project directory and execute the following command to download the latest stable version of this module:
$ composer require emanueleminotto/embedly-module
This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.
Usage
// EmanueleMinotto\Embedly\Client instance $embedly = $this->getServiceLocator()->get('embedly');
Configuration
The module doesn't need a configuration to be used, but you can add an API key and a reference to a Guzzle 5 client.
return array( 'embedly' => array( 'api_key' => 'xxxxxxxx', 'http_client' => 'guzzle_client_service_reference', ), );
View Helper
A view helper is provided in this module, the method embedlyDisplay works like the library display method (ref).
<img src="<?php echo $this->embedlyDisplay('resize', [ 'url' => 'http://placehold.it/500', 'width' => 100, 'height' => 100, ]); ?>" />
统计信息
- 总下载量: 16
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-02-08