PHP code example of emanueleminotto / embedly-module

1. Go to this page and download the library: Download emanueleminotto/embedly-module library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

emanueleminotto / embedly-module example snippets


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

return array(
    'embedly' => array(
        'api_key' => 'xxxxxxxx',
        'http_client' => 'guzzle_client_service_reference',
    ),
);
html+php
<img src=" echo $this->embedlyDisplay('resize', [
    'url' => 'http://placehold.it/500',
    'width' => 100,
    'height' => 100,
]);