PHPackages                             trendix/twitter-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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. trendix/twitter-bundle

ActiveSymfony-bundle[Authentication &amp; Authorization](/categories/authentication)

trendix/twitter-bundle
======================

Twitter login and other functionalities

19JavaScript

Since May 22Pushed 8y agoCompare

[ Source](https://github.com/Trendix-Creative-Apps/TwitterBundle)[ Packagist](https://packagist.org/packages/trendix/twitter-bundle)[ RSS](/packages/trendix-twitter-bundle/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Trendix Twitter Bundle
======================

[](#trendix-twitter-bundle)

Welcome to our brand new Twitter Bundle. With this bundle, you can easily authenticate a user at twitter so your Symfony 2.8 or 3.\* application can read and tweet on user's behalf with their authorization.

This project is still at alpha, but we are going to improve its functionality and documentation soon enough.

How can I install this bundle?
------------------------------

[](#how-can-i-install-this-bundle)

1. Install our bundle using composer:

```
composer require trendix/twitter-bundle

```

2. [Create and configure a Twitter app](https://apps.twitter.com/app/new), if you don't have one already.
3. In the app Setting, set the Callback URL to the URL use to login and redirect the user to the app (by default the route is called `trendix_twitter_login`, look at TwitterController:twitterLogin).
4. Add to the Kernel our bundle:

```
$bundles = array(
    new Symfony\Bundle\FrameworkBundle\FrameworkBundle(),
    ...
    new Trendix\TwitterBundle\TrendixTwitterBundle(),
);

```

5. Add also the routing configuration to your routing.yml:

```
trendix_twitter:
    resource: "@TrendixTwitterBundle/Resources/config/routing.yml"
    prefix:   /

```

6. Add these five parameters to your parameters.yml with your twitter app data:, at "Keys and Access Tokens" tab:

```
parameters:
    ...
    secret: ThisTokenIsNotSoSecretChangeIt
    twitter_consumer: '' # Consumer Key (API Key)
    twitter_consumer_secret: '' # Consumer Secret (API Secret)
    twitter_access_token: '' # Access Token
    twitter_access_token_secret: '' # Access Token Secret
    twitter_salt: '' # Used for security. Just put a phrase or any string and don't tell it to anyone else.

```

How can I use this bundle?
--------------------------

[](#how-can-i-use-this-bundle)

Just follow our DefaultController:test example. Just include our twitter\_widget and twitter\_includes in your template and it should be ready to work.

You can always use your own css to overwrite its style

### Custom your widget

[](#custom-your-widget)

Using our controllers as an example, you can easily change the twig template, css, js or even do completely different controllers. The TwitterAPI class is the center of the twitter behaviour, so you can use only that if you want :D

EU Warning
----------

[](#eu-warning)

Our bundle uses the jquery.cookie plugin to store the user token data so the browser can keep their session when refreshing or changing pages. Disabling this feature is not recommended, but if you work at the EU, yo have to state your Cookies Policy and request the user for their consent before using these cookies.

We recommend using  in order to avoid any legal issues.

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/817763c895b99c518542ab22fc3b6550c5af1f120f20a9c095519fb8faecf5c8?d=identicon)[jose](/maintainers/jose)

---

Top Contributors

[![JoseTrendix](https://avatars.githubusercontent.com/u/26137469?v=4)](https://github.com/JoseTrendix "JoseTrendix (5 commits)")

### Embed Badge

![Health badge](/badges/trendix-twitter-bundle/health.svg)

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

###  Alternatives

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M118](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)

PHPackages © 2026

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