Download the PHP package jakubenglicky/social-plugins without Composer
On this page you can find all versions of the php package jakubenglicky/social-plugins. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download jakubenglicky/social-plugins
More information about jakubenglicky/social-plugins
Files in jakubenglicky/social-plugins
Download jakubenglicky/social-plugins
More information about jakubenglicky/social-plugins
Files in jakubenglicky/social-plugins
Vendor jakubenglicky
Package social-plugins
Short Description Wrapper around social plugins.
License
Package social-plugins
Short Description Wrapper around social plugins.
License
Please rate this library. Is it a good library?
Informations about the package social-plugins
SocialPlugins
This is the simple wrapper around implementing social plugins to your websites.
More info (Facebook) -> https://developers.facebook.com/
More info (Twitter) -> https://dev.twitter.com/
Instalation
composer require jakubenglicky/social-plugins
Usage
$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');
$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
$hub = new jakubenglicky\SocialPlugins\Hub();
$hub->fb; //instance of jakubenglicky\SocialPlugins\Facebook()
$hub->tw; //instance of jakubenglicky\SocialPlugins\Twitter()All versions of social-plugins with dependencies
PHP Build Version
Package Version
Requires
latte/latte Version
^2.4
The package jakubenglicky/social-plugins contains the following files
Loading the files please wait ...