stegeman / embedly-bundle
Bridge bundle for the embedly api. Defines a service and configuration for the official embedly library
Installs: 3 441
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: >=5.3.0
- embedly/embedly-php: v0.5.4
This package is auto-updated.
Last update: 2024-11-05 16:20:36 UTC
README
This bundle creates just makes use of the official embedly api provided by embed.ly. It provides you with one service called 'stegeman_embedly.api'.
Installation
Using Composer, add to composer.json:
{
"require": {
"stegeman/embedly-bundle": "dev-master"
}
}
Then install it using composer:
php composer.phar update stegeman/embedly-bundle
Register the bundle in /app/AppKernel.php:
<?php
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
// ...
new Stegeman\EmbedlyBundle\StegemanEmbedlyBundle()
);
}
}
Configuration
This bundle had four configuration options: The only required option is the key provided by embedly.
# in config.yml
stegeman_embedly:
args:
key: 9cddb3ccb4c5418387e59411693f5afd # required
hostname: api.embed.ly # Optional
api_version: # optional
oembed: 1
objectify: 2
preview: 1
extract: 1
user_agent: Mozilla/5.0 (compatible; embedly-php/%s) #optional