2017 © Pedro Peláez
 

library embedly-module

Embed.ly module for Zend Framework 2

image

emanueleminotto/embedly-module

Embed.ly module for Zend Framework 2

  • Sunday, October 11, 2015
  • by EmanueleMinotto
  • Repository
  • 1 Watchers
  • 0 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Embedly Module

Build Status SensioLabs Insight Coverage Status Scrutinizer Code Quality Total Downloads, (*1)

An embed.ly module for Zend Framework 2 based on the Embedly library., (*2)

API: emanueleminotto.github.io/EmbedlyModule, (*3)

Installation

Open a command console, enter your project directory and execute the following command to download the latest stable version of this module:, (*4)

$ composer require emanueleminotto/embedly-module

This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation., (*5)

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., (*6)

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)., (*7)

html+php <img src="<?php echo $this->embedlyDisplay('resize', [ 'url' => 'http://placehold.it/500', 'width' => 100, 'height' => 100, ]); ?>" />, (*8)

The Versions

11/10 2015

dev-master

9999999-dev

Embed.ly module for Zend Framework 2

  Sources   Download

MIT

The Requires

 

The Development Requires

zf2 module oembed embed embedly

07/03 2015

1.1.0

1.1.0.0

Embed.ly module for Zend Framework 2

  Sources   Download

MIT

The Requires

 

The Development Requires

zf2 module oembed embed embedly

10/02 2015

1.0.0

1.0.0.0

Embed.ly module for Zend Framework 2

  Sources   Download

MIT

The Requires

 

The Development Requires

zf2 module oembed embed embedly