2017 © Pedro Peláez
 

library social-plugins

Wrapper around social plugins.

image

jakubenglicky/social-plugins

Wrapper around social plugins.

  • Sunday, April 15, 2018
  • by jakubenglicky
  • Repository
  • 1 Watchers
  • 1 Stars
  • 35 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 2 Open issues
  • 4 Versions
  • 0 % Grown

The README.md

SocialPlugins

Latest version Downloads this Month Build, (*1)

This is the simple wrapper around implementing social plugins to your websites., (*2)

More info (Facebook) -> https://developers.facebook.com/, (*3)

More info (Twitter) -> https://dev.twitter.com/, (*4)

Instalation

composer require jakubenglicky/social-plugins

Usage

Facebook, (*5)

$fb = new jakubenglicky\SocialPlugins\Facebook();

// Render after body opening tag <body> 
echo $fb->renderInit();


echo $fb->renderComments();
echo $fb->renderLikeButton();
echo $fb->renderShareButton();
echo $fb->renderFollowButton('http://www.facebook.com/zuck');
echo $fb->renderPagePlugin('https://www.facebook.com/FacebookforDevelopers');

Twitter, (*6)

$tw = new jakubenglicky\SocialPlugins\Twitter();

// Render link to twitter.js file
echo $tw->renderJs();

echo $tw->renderTweetButton();
echo $tw->renderFollowButton('https://twitter.com/kubaenglicky');

You can use all in one, (*7)

$hub = new jakubenglicky\SocialPlugins\Hub();

$hub->fb; //instance of jakubenglicky\SocialPlugins\Facebook()
$hub->tw; //instance of jakubenglicky\SocialPlugins\Twitter()

The Versions

15/04 2018

dev-master

9999999-dev

Wrapper around social plugins.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Jakub Englický

plugin social facebook twitter

02/09 2017

v1.0.x-dev

1.0.9999999.9999999-dev

Wrapper around social plugins.

  Sources   Download

The Requires

 

The Development Requires

by Jakub Englický

02/09 2017

v1.0.2

1.0.2.0

Wrapper around social plugins.

  Sources   Download

The Requires

 

The Development Requires

by Jakub Englický

23/08 2017

v1.0.1

1.0.1.0

Wrapper around social plugins.

  Sources   Download

The Requires

 

The Development Requires

by Jakub Englický