PHPackages                             emanueleminotto/embedly-module - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. emanueleminotto/embedly-module

ActiveLibrary[API Development](/categories/api)

emanueleminotto/embedly-module
==============================

Embed.ly module for Zend Framework 2

1.1.0(11y ago)016MITPHP

Since Feb 10Pushed 10y ago1 watchersCompare

[ Source](https://github.com/EmanueleMinotto/EmbedlyModule)[ Packagist](https://packagist.org/packages/emanueleminotto/embedly-module)[ RSS](/packages/emanueleminotto-embedly-module/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (4)Versions (3)Used By (0)

Embedly Module
==============

[](#embedly-module)

[![Build Status](https://camo.githubusercontent.com/d8a2d6d91d1a25e9e45a42a8f853aafd8ba171457a3dffefd144f7578aea71a6/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f456d616e75656c654d696e6f74746f2f456d6265646c794d6f64756c652e7376673f7374796c653d666c6174)](https://travis-ci.org/EmanueleMinotto/EmbedlyModule)[![SensioLabs Insight](https://camo.githubusercontent.com/1e0165de82273e8da5d484f978fc1b4e1488711cc955be364a503bf70fb07513/68747470733a2f2f696d672e736869656c64732e696f2f73656e73696f6c6162732f692f61306265393962372d663966632d343734342d616231392d6364633063366161396632362e7376673f7374796c653d666c6174)](https://insight.sensiolabs.com/projects/a0be99b7-f9fc-4744-ab19-cdc0c6aa9f26)[![Coverage Status](https://camo.githubusercontent.com/49e04094fdfd13d8578cec381663fef968b40fc0c43d9d6994caa149a7a1931a/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f456d616e75656c654d696e6f74746f2f456d6265646c794d6f64756c652e7376673f7374796c653d666c6174)](https://coveralls.io/r/EmanueleMinotto/EmbedlyModule)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/c94d424e6185ecec26635b2cf81629c1aea8628b7a261e8317b345c7ea7d93fe/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f456d616e75656c654d696e6f74746f2f456d6265646c794d6f64756c652e7376673f7374796c653d666c6174)](https://scrutinizer-ci.com/g/EmanueleMinotto/EmbedlyModule/)[![Total Downloads](https://camo.githubusercontent.com/caa39788cba773c9566a13cd7e33fa8eadeea5e095aa1b11e3b5b25df93d159d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f656d616e75656c656d696e6f74746f2f656d6265646c792d6d6f64756c652e7376673f7374796c653d666c6174)](https://packagist.org/packages/emanueleminotto/embedly-module)

An [embed.ly](http://embed.ly) module for Zend Framework 2 based on the [Embedly](https://github.com/EmanueleMinotto/Embedly) library.

API: [emanueleminotto.github.io/EmbedlyModule](http://emanueleminotto.github.io/EmbedlyModule/)

Installation
------------

[](#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](https://getcomposer.org/doc/00-intro.md)of the Composer documentation.

Usage
-----

[](#usage)

```
// EmanueleMinotto\Embedly\Client instance
$embedly = $this->getServiceLocator()->get('embedly');
```

Configuration
-------------

[](#configuration)

The module doesn't need a configuration to be used, but you can add an [API key](http://embed.ly/docs/api/authentication) and a reference to a [Guzzle 5](http://docs.guzzlephp.org/en/latest/) client.

```
return array(
    'embedly' => array(
        'api_key' => 'xxxxxxxx',
        'http_client' => 'guzzle_client_service_reference',
    ),
);
```

View Helper
-----------

[](#view-helper)

A view helper is provided in this module, the method `embedlyDisplay` works like the library `display` method (*[ref](https://github.com/EmanueleMinotto/Embedly#display)*).

```
