PHPackages                             hostbox/nette-component-social-plugins - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. hostbox/nette-component-social-plugins

ActiveLibrary[Framework](/categories/framework)

hostbox/nette-component-social-plugins
======================================

Social plugins component for Nette Framework

v1.5.2(11y ago)82.9k2[1 issues](https://github.com/HostBox/nette-social-plugins/issues)MITPHP

Since Dec 9Pushed 11y ago1 watchersCompare

[ Source](https://github.com/HostBox/nette-social-plugins)[ Packagist](https://packagist.org/packages/hostbox/nette-component-social-plugins)[ RSS](/packages/hostbox-nette-component-social-plugins/feed)WikiDiscussions master Synced today

READMEChangelog (10)Dependencies (2)Versions (13)Used By (0)

Social Plugins for Nette Framework [![Build Status](https://camo.githubusercontent.com/f39f5288c530ba9709ca8510ce1f6a47c8a708ed067c01139c50f71345092646/68747470733a2f2f7472617669732d63692e6f72672f486f7374426f782f6e657474652d736f6369616c2d706c7567696e732e706e67)](https://travis-ci.org/HostBox/nette-socialPlugins)
=========================================================================================================================================================================================================================================================================================================================

[](#social-plugins-for-nette-framework-)

Support for Facebook, Twitter, Google+, LinkedIn and Pinterest
--------------------------------------------------------------

[](#support-for-facebook-twitter-google-linkedin-and-pinterest)

**Facebook:**

- Activity feed
- Comments
- Embedded post
- Facepile
- Follow button
- Like box
- Like button
- Send button
- Share button

**Twitter:**

- Follow button
- Hashtag button
- Mention button
- Share button
- Embedded timeline
- Embedded favorites
- Embedded search

**Google+:**

- +1 button
- Share button
- Profile badge
- Page badge
- Community badge

**LinkedIn:**

- Company insider
- Company profile
- Member profile
- Share button
- Recommend button

**Pinterest:**

- Pin It button
- Follow button
- Pin widget
- Profile widget
- Board widget

Package Installation
--------------------

[](#package-installation)

The best way to install Social Plugins is using [Composer](http://getcomposer.org/):

```
$ composer require hostbox/nette-component-social-plugins
```

[Packagist - Versions](https://packagist.org/packages/hostbox/nette-component-social-plugins)

[Nette Forum (cs) - plugin section](http://forum.nette.org/cs/16220-social-plugins-facebook-twitter-a-g)

[Nette Addons](http://addons.nette.org/hostbox/nette-component-social-plugins)

or manual edit composer.json in your project

```
"require": {
    "hostbox/nette-component-social-plugins": "v1.5.0"
}
```

Component Installation
----------------------

[](#component-installation)

**config.neon**

```
services:
    # Configs
    - HostBox\Components\Facebook\SocialPlugins\Config('facebookAppId')
    - HostBox\Components\Twitter\SocialPlugins\Config
    - HostBox\Components\Google\SocialPlugins\Config
    # Factories
    - HostBox\Components\Facebook\SocialPlugins\FacebookFactory
    - HostBox\Components\Twitter\SocialPlugins\TwitterFactory
    - HostBox\Components\Google\SocialPlugins\GoogleFactory
    - HostBox\Components\Pinterest\SocialPlugins\PinterestFactory

```

**Presenter**

```
use HostBox\Components\Facebook\SocialPlugins\LikeBox;
use HostBox\Components\Google\SocialPlugins\GoogleFactory;
use HostBox\Components\Google\SocialPlugins\PlusOneButton;
use HostBox\Components\Pinterest\SocialPlugins\PinItButton;
use HostBox\Components\Pinterest\SocialPlugins\PinterestFactory;
use HostBox\Components\Twitter\SocialPlugins\FollowButton;
use HostBox\Components\Twitter\SocialPlugins\TwitterFactory;

class HomepagePresenter extends BasePresenter {

    /** @var FacebookFactory */
    protected $facebookFactory;

    /** @var TwitterFactory */
    protected $twitterFactory;

    /** @var GoogleFactory */
    protected $googleFactory;

    /** @var PinterestFactory */
    protected $pinterestFactory;

    /**
     * @var LinkedInFactory
     * @inject
     */
    public $linkedInFactory;

    public function __construct(FacebookFactory $facebookFactory, TwitterFactory $twitterFactory, GoogleFactory $googleFactory, PinterestFactory $pinterestFactory) {
        $this->facebookFactory = $facebookFactory;
        $this->twitterFactory = $twitterFactory;
        $this->googleFactory = $googleFactory;
        $this->pinterestFactory = $pinterestFactory;
    }

    // component create by Factory
    public function createComponentFacebookLikeButton() {
        return $this->facebookFactory->createLikeButton();
    }

    // default settings by factory function parameter
    public function createComponentFacebookLikeBox() {
        return $this->facebookFactory->createLikeBox(array(
            'colorScheme' => LikeBox::COLOR_SCHEME_DARK,
            'showFaces' => TRUE
        ));
    }

    // by component function parameter
    public function createComponentTwitterShareButton() {
        $component = $this->twitterFactory->createFollowButton();
        $component->assign(array(
            'size' => FollowButton::SIZE_LARGE,
            'showCount' => TRUE
        ));

        return $component;
    }

    // by component variable
    public function createComponentGooglePlusOneButton() {
        $component = $this->googleFactory->createPlusOneButton();
        $component->size = PlusOneButton::SIZE_SMALL;

        return $component;
    }

    public function createComponentLinkedInShareButton() {
        return $this->linkedInFactory->createShareButton();
    }

    public function createComponentPinterestFollowButton() {
        return $this->pinterestFactory->createFollowButton(array(
            'userName' => 'pinterest',
            'text' => 'Pinterest'
        ));
    }
}
```

**Template**

```
{control facebookLikeButton}

// temporary(only for this render) settings editing in Template
{control facebookLikeButton, layout => 'box_count', showFaces => true}

{control facebookLikeBox}
{control twitterShareButton}
{control googlePlusOneButton}
{control linkedInShareButton}
{control pinterestFollowButton}

{control facebookLikeButton:jsScript}
{control twitterShareButton:jsScript}
{control googlePlusOneButton:jsScript}
{control linkedInShareButton:jsScript}
{control pinterestFollowButton:jsScript}

```

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance18

Infrequent updates — may be unmaintained

Popularity23

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~24 days

Recently: every ~64 days

Total

12

Last Release

4322d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6b3c8fd523715db8fd639c63b8f6b2c51449b00def41e0debd052a52b8aa35ca?d=identicon)[HostBox](/maintainers/HostBox)

---

Top Contributors

[![pmachan](https://avatars.githubusercontent.com/u/1494579?v=4)](https://github.com/pmachan "pmachan (61 commits)")

---

Tags

pluginfacebookgooglenettetwittersocialcomponentlinkedinpinterest

### Embed Badge

![Health badge](/badges/hostbox-nette-component-social-plugins/health.svg)

```
[![Health](https://phpackages.com/badges/hostbox-nette-component-social-plugins/health.svg)](https://phpackages.com/packages/hostbox-nette-component-social-plugins)
```

###  Alternatives

[fof/oauth

Allow users to log in with GitHub, Facebook, Google, Discord, GitLab, LinkedIn, and more!

50131.1k45](/packages/fof-oauth)[pdir/social-feed-bundle

Social feed extension for Contao CMS

1415.5k](/packages/pdir-social-feed-bundle)[and/oauth

Simple and amazing OAuth library with many providers. Just try it out!

4345.2k2](/packages/and-oauth)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
