dev-master
9999999-dev https://github.com/stitisami/sharethisbundleShare This Symfony Bundle
MIT
The Requires
- php >=5.3.3
- symfony/symfony >=2.7
by Sami Stiti
social symfony sharethis
Wallogit.com
2017 © Pedro Peláez
Share This Symfony Bundle
Welcome to sharethisBundle - a Symfony bundle to make share This buttons, (*1)
, (*2)
Step 1: Download the Bundle ~~~~~~~~~~~~~~~~~~~~~~~~~~~, (*3)
Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:, (*4)
$ composer require stiti/sharethisbundle 1.0.x-dev
Step 2: Enable the Bundle ~~~~~~~~~~~~~~~~~~~~~~~~~, (*5)
Then, enable the bundle by adding the following line in the app/AppKernel.php
file of your project:, (*6)
<?php
// app/AppKernel.php
// ...
class AppKernel extends Kernel
{
public function registerBundles()
{
$bundles = array(
// ...
new SharethisBundle\SharethisBundle(),
);
// ...
}
// ...
}
Step 3: Configure the bundle, (*7)
_sharethis-api: http://tools.sharethis.com/get-sharing-tools/#, (*8)
# app/config/config.yml sharethis: publisher : #Your api key
Usage, (*9)
In your template twig insert this code, (*10)
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~, (*11)
{{ render(controller('SharethisBundle:Share:share')) }}
Share This Symfony Bundle
MIT
social symfony sharethis