2017 © Pedro Peláez
 

library php-socializer

Easy & customizable social integration for your projects

image

faceleg/php-socializer

Easy & customizable social integration for your projects

  • Thursday, May 2, 2013
  • by faceleg
  • Repository
  • 3 Watchers
  • 11 Stars
  • 47 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 5 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

PHP Socializer

PHP module intended to make adding social sharing buttons more enjoyable. Includes Google Analytics hooks to enable tracking of share activity., (*1)

Currently supports Twitter, Facebook, Google Plus, LinkedIn, StumbleUpon, GitHub and Flattr buttons., (*2)

Basic Example

PHP Socializer Basic Example, (*3)

These buttons can be created with the following code:, (*4)

 new Social\Twitter(array(
        'username' => 'pagesofinterest',
    )),
    'googleplus' => new Social\GooglePlus(array(
        'size' => 'medium'
    )),
    'linkedIn' => new Social\LinkedIn()
), array(
    'fadeIn' => 400
));
 
/* Where the buttons should be displayed */
echo $socialManager->render(array(
    // These options override those used in the manager initialisation above
    'url' => 'http://pagesofinterest.net/',
    'title' => 'Pages of Interest', 
));
 
/* In your footer, just above the closing  tag */
// Output the 

Single Button

PHP Socializer Single Button, (*5)

To render a single button, use the following syntax:, (*6)

 'faceleg',
    'repository' => 'COI-Social',
    'type' => Social\GitHub\Type\WATCH
));
?>

Credits

GitHub buttons created by Mark Dotto - GitHub buttons., (*7)

The Versions

02/05 2013

dev-master

9999999-dev http://pagesofinterest.net/projects/php-socializer/

Easy & customizable social integration for your projects

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

social facebook twitter github stumbleupon

15/10 2012

v0.0.2

0.0.2.0 http://pagesofinterest.net/projects/php-socializer/

Easy & customizable social integration for your projects

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

social facebook twitter github stumbleupon