2017 © Pedro Peláez
 

library sculpin-oembed-bundle

Sculpin oEmbed bundle

image

bangpound/sculpin-oembed-bundle

Sculpin oEmbed bundle

  • Saturday, July 11, 2015
  • by bangpound
  • Repository
  • 1 Watchers
  • 0 Stars
  • 13 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Sculpin oEmbed Bundle

This bundle is not ready to use!, (*1)

Setup

Add this bundle in your sculpin.json file:, (*2)

{
    "require": {
        "bangpound/sculpin-oembed-bundle": "~1.0@dev"
    }
}

and install this bundle running sculpin update., (*3)

Now you can register the bundle in SculpinKernel class available on app/SculpinKernel.php file:, (*4)

class SculpinKernel extends \Sculpin\Bundle\SculpinBundle\HttpKernel\AbstractKernel
{
    protected function getAdditionalSculpinBundles()
    {
        return array(
           'Bangpound\Sculpin\Bundle\OEmbedBundle\SculpinOEmbedBundle'
        );
    }
}

How to use

In a Twig template, use the oembed function with a URL argument., (*5)

{{ oembed('https://vimeo.com/86129237') }}

TODO

  • Use a different oEmbed library. excelwebzone/oemebd does not support oEmbed parameters.
  • Support caching.

The Versions

11/07 2015

dev-master

9999999-dev

Sculpin oEmbed bundle

  Sources   Download

MIT

The Requires