Embed.ly module for Zend Framework 2
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.
// EmanueleMinotto\Embedly\Client instance $embedly = $this->getServiceLocator()->get('embedly');
return array( 'embedly' => array( 'api_key' => 'xxxxxxxx', 'http_client' => 'guzzle_client_service_reference', ), );
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, ]); ?>" />