PHP code example of overblog / embedly-bundle

1. Go to this page and download the library: Download overblog/embedly-bundle 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/ */

    

overblog / embedly-bundle example snippets

 php

          // app/autoload.php
          $loader->registerNamespaces(array(
                'Overblog' => __DIR__.'/../vendor/bundles',
                'Embedly'   => __DIR__.'/../vendor/embedly-php/src'
                // your other namespaces
          ));
 php

          // app/ApplicationKernel.php
          public function registerBundles()
          {
              return array(
                  // ...
                  new Overblog\EmbedlyBundle\OverblogEmbedlyBundle(),
                  // ...
              );
          }
 php

        $embedly = $this->get('overblog_embedly');
        $oembedResponse = $embedly->get('http://about.over-blog.com/article-participez-a-la-conception-de-la-prochaine-version-d-overblog-91418456.html');
        /*
            object(stdClass)[1251]
  public 'provider_url' => string 'http://about.over-blog.com/' (length=27)
  public 'description' => string 'Mardi 6 décembre 2011 2 06 /12 /Déc /2011 12:44 Dans les mois à venir, nous allons développer une version complètement nouvelle d'OverBlog. La nouvelle version remplacera l'actuelle plateforme, elle sera plus fonctionnelle, plus simple et vos blogs actuels en bénéficieront automatiquement !' (length=298)
  public 'title' => string 'Participez à la conception de la prochaine version d'OverBlog !' (length=64)
  public 'url' => string 'http://about.over-blog.com/article-participez-a-la-conception-de-la-prochaine-version-d-overblog-91418456.html' (length=110)
  public 'thumbnail_width' => int 439
  public 'thumbnail_url' => string 'http://idata.over-blog.com/0/00/63/43/perenoel.jpg' (length=50)
  public 'version' => string '1.0' (length=3)
  public 'provider_name' => string 'Over-blog' (length=9)
  public 'type' => string 'link' (length=4)
  public 'thumbnail_height' => int 269
        */