PHPackages                             thibaudanthoine/twitter-twig-extension-bundle - 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. [Templating &amp; Views](/categories/templating)
4. /
5. thibaudanthoine/twitter-twig-extension-bundle

ActiveLibrary[Templating &amp; Views](/categories/templating)

thibaudanthoine/twitter-twig-extension-bundle
=============================================

Twig extension to facilitate twitter buttons integration

1.0(12y ago)112MITPHP

Since Apr 29Pushed 11y ago1 watchersCompare

[ Source](https://github.com/thibaudanthoine/twitter-twig-extension-bundle)[ Packagist](https://packagist.org/packages/thibaudanthoine/twitter-twig-extension-bundle)[ RSS](/packages/thibaudanthoine-twitter-twig-extension-bundle/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (2)Used By (0)

Twitter-twig-extension-bundle
=============================

[](#twitter-twig-extension-bundle)

[![Build status](https://camo.githubusercontent.com/55f33005e1c5b977d4069334b3938ba3d72df0e080b770b0b338eafc3cb7a66e/68747470733a2f2f7472617669732d63692e6f72672f74686962617564616e74686f696e652f747769747465722d747769672d657874656e73696f6e2d62756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/thibaudanthoine/twitter-twig-extension-bundle)Provides Twig extension for facilitating Twitter buttons integration.

Installation
------------

[](#installation)

1 - Add package to your `composer.json`:

```
{
    "require": {
        "thibaudanthoine/twitter-twig-extension-bundle": "dev-master"
    }
}
```

2 - Edit your `app/AppKernel.php` and register bundle:

```
public function registerBundles()
{
    $bundles = array(
        // ...
        new Thibaud\TwitterTwigExtensionBundle\ThibaudTwitterTwigExtensionBundle(),
    );

    // ...
```

3 - Finally configure the service in `app/config/config.yml`:

```
thibaud_twitter_twig_extension:
    enabled: true
    lang: "%locale%"
    large: true
    buttons:
        share:
            show_count: true
        follow:
            username: "thibaudanthoine"
            show_username: true
```

Using Twitter twig extension bundle
-----------------------------------

[](#using-twitter-twig-extension-bundle)

To include Twitter button (share or follow) in your application, simply use twig functions below:

```
{{ twitter_button_share() }}

{{ twitter_button_follow() }}
```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

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

Unknown

Total

1

Last Release

4395d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c1464e264c08d4538395bac5d3650553a32fba37f526b30c7daf704a810ab015?d=identicon)[thibaudanthoine](/maintainers/thibaudanthoine)

---

Top Contributors

[![thibaudanthoine](https://avatars.githubusercontent.com/u/4076561?v=4)](https://github.com/thibaudanthoine "thibaudanthoine (6 commits)")

### Embed Badge

![Health badge](/badges/thibaudanthoine-twitter-twig-extension-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/thibaudanthoine-twitter-twig-extension-bundle/health.svg)](https://phpackages.com/packages/thibaudanthoine-twitter-twig-extension-bundle)
```

###  Alternatives

[dms/twig-extension-bundle

DMS Twig Extension Bundle, leverages Fabien Potencier's extra twig extensions for your website.

19296.3k](/packages/dms-twig-extension-bundle)[frozzare/digster

Twig templates for WordPress

107.1k](/packages/frozzare-digster)

PHPackages © 2026

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