PHPackages                             inori/twitter-app-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. inori/twitter-app-bundle

AbandonedArchivedSymfony-bundle[Utility &amp; Helpers](/categories/utility)

inori/twitter-app-bundle
========================

Clientless Twitter application instance to help automate project twitter updates

71.8k8[1 issues](https://github.com/Inoryy/InoriTwitterAppBundle/issues)1PHP

Since Jul 14Pushed 10y agoCompare

[ Source](https://github.com/Inoryy/InoriTwitterAppBundle)[ Packagist](https://packagist.org/packages/inori/twitter-app-bundle)[ RSS](/packages/inori-twitter-app-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (1)

DISCONTINUED
============

[](#discontinued)

This project is no longer maintained by me. If you want to take over, please get in touch with me at

Introduction
============

[](#introduction)

TwitterAppBundle at its core is just a simple proxy bundle between twitteroauth client and symfony2. It is only meant to be used as a clientless app. If you want to add Twitter login/register/etc functionality to your app, please consider using FOS/TwitterBundle instead.

Example usage
=============

[](#example-usage)

Example use-case for this bundle would be automated twitter messages (from your project account) about certain events in your system.

Installation
============

[](#installation)

#### With deps:

[](#with-deps)

Add this bundle and Abraham Williams' Twitter library to your application:

```
[twitteroauth]
    git=http://github.com/abraham/twitteroauth.git

[InoriTwitterAppBundle]
    git=http://github.com/Inori/InoriTwitterAppBundle.git
    target=bundles/Inori/TwitterAppBundle

```

#### With composer:

[](#with-composer)

Add this bundle to your composer.json:

```
// composer.json
{
    // ...
    require: {
        // ...
        "inori/twitter-app-bundle": "master"
    }
}

```

Register the namespace `Inori` to your project's autoloader bootstrap script:

```
//app/autoload.php
$loader->registerNamespaces(array(
    // ...
    'Inori'    => __DIR__.'/../vendor/bundles',
    // ...
));

```

Add this bundle to your application's kernel:

```
//app/AppKernel.php
public function registerBundles()
{
    return array(
        // ...
        new Inori\TwitterAppBundle\InoriTwitterAppBundle(),
    );
}

```

Configure the `twitter_app` service in your YAML configuration:

```
#app/config/config.yml
inori_twitter_app:
    file: %kernel.root_dir%/../vendor/twitteroauth/twitteroauth/twitteroauth.php
    consumer_key: xxxxxx
    consumer_secret: xxxxxx
    oauth_token: xxxxxx
    oauth_token_secret: xxxxxx

```

**NB!** To learn how to get keys/tokens, take a look at [Twitter Developers documentation](https://dev.twitter.com/docs). For a quick walkthrough check below.

Using TwitterApp
================

[](#using-twitterapp)

If the setup is done correctly, then you can start using TwitterApp like this:

```
// ...
$ta = $this->container->get('twitter_app');
$messages = $ta->getDirectMessages();

```

TwitterApp comes with some basic methods for easier usage (tweet, follow), but for most of the API features you should use twitteroauth via getApi() method like this:

```
// ...
$ta = $this->container->get('twitter_app');
$trends = $ta->getApi()->get('trends');

```

Getting Twitter API tokens
==========================

[](#getting-twitter-api-tokens)

- Login at [Twitter Developers page](https://dev.twitter.com/user/login)
- [Create your application](https://dev.twitter.com/apps/new)
- Go to your app profile page via [My applications](https://dev.twitter.com/apps)
- There you will see *Consumer key* and *Consumer secret* under **OAuth settings**
- Under **Your access token** you should see *Access token* and *Access token secret*, if not then simply press "Recreate my access token"
- Make sure *Access level* is **Read, write, and direct messages**, if not then then go to *Settings* tab and under *Application Type -&gt; Access* choose **Read, Write and Access direct messages**

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance17

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 79.3% 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/ab8afe103798edfb26da23eddf72fb5e9650b3931ce63d566f07aa2a1eea5159?d=identicon)[Inoryy](/maintainers/Inoryy)

---

Top Contributors

[![inoryy](https://avatars.githubusercontent.com/u/195271?v=4)](https://github.com/inoryy "inoryy (23 commits)")[![mattvick](https://avatars.githubusercontent.com/u/651430?v=4)](https://github.com/mattvick "mattvick (4 commits)")[![mperouma](https://avatars.githubusercontent.com/u/9030334?v=4)](https://github.com/mperouma "mperouma (2 commits)")

### Embed Badge

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

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

###  Alternatives

[hiqdev/hidev

Automation tool mixed with code generator for easier continuous development

3229.4k28](/packages/hiqdev-hidev)[hiqdev/yii2-collection

Collection library for Yii2

1044.8k6](/packages/hiqdev-yii2-collection)

PHPackages © 2026

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