2017 © Pedro Peláez
 

symfony-bundle social-sdk-bundle

Adds the SDK required by social networks at the end of the web page, only when the SDK is required

image

alphalemon/social-sdk-bundle

Adds the SDK required by social networks at the end of the web page, only when the SDK is required

  • Sunday, December 9, 2012
  • by alphalemon
  • Repository
  • 1 Watchers
  • 1 Stars
  • 4 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

The SocialSDK Bundle

This bundle adds the SDK required by social networks at the end of the web page, only when the SDK is required., (*1)

This means that the facebook sdk is added to the page, only when a fecebook button is added to the page., (*2)

Supported SDK

At the moment the SocialSDK Bundle supports those social networks:, (*3)

  • Twitter
  • Facebook

Installation

You can add the SocialSDK Bundle to your application adding it to your composer.json file:, (*4)

.. code-block:: text, (*5)

{
    "require": {
        "alphalemon/social-sdk-bundle": "dev-master",        
    }
}

If you use the AlphaLemonBootstrapBundle the bundle is autoloaded, otherwise add it to the application AppKernel.php file:, (*6)

.. code-block:: php, (*7)

class AppKernel extends Kernel
{
    public function registerBundles()
    {
        $bundles = array(
            [...]

            new AlphaLemon\Block\SearchBlockBundle\SearchBlockBundle(),
        );
    }
}

Add a new SDK

A new SDK is easily added, add a new provider that extends the AlphaLemon\Block\SocialSDKBundle\Core\Sdk\SdkBase. This abstract base class provides a common constructor and implements the AlphaLemon\Block\SocialSDKBundle\Core\Sdk\SdkInterface, without implementing its method as well, which must be defined in the derived class., (*8)

Unit test

The bunde is not yet unit tested, so use it just with test or implementation pourpose., (*9)

The Versions

09/12 2012

dev-master

9999999-dev http://alphalemon.com

Adds the SDK required by social networks at the end of the web page, only when the SDK is required

  Sources   Download

MIT

by Avatar alphalemon

social facebook twitter alphalemon