PHPackages                             richweber/yii2-twitter - 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. [API Development](/categories/api)
4. /
5. richweber/yii2-twitter

ActiveYii2-extension[API Development](/categories/api)

richweber/yii2-twitter
======================

Yii2 extension to the Twitter API

1.0.2(9y ago)329.0k↓11%5BSD-3-ClausePHP

Since Feb 11Pushed 9y ago2 watchersCompare

[ Source](https://github.com/RichWeber/yii2-twitter)[ Packagist](https://packagist.org/packages/richweber/yii2-twitter)[ Docs](https://github.com/RichWeber/yii2-twitter)[ RSS](/packages/richweber-yii2-twitter/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (1)Versions (4)Used By (0)

Yii2 extension to the Twitter API
=================================

[](#yii2-extension-to-the-twitter-api)

Twitter Oauth Library

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
$ php composer.phar require richweber/yii2-twitter "dev-master"

```

or add

```
"richweber/yii2-twitter": "dev-master"

```

to the `require` section of your `composer.json` file.

Usage
-----

[](#usage)

### Component Configuration

[](#component-configuration)

```
'components' => [
    ...
    'twitter' => [
        'class' => 'richweber\twitter\Twitter',
        'consumer_key' => 'YOUR_TWITTER_CONSUMER_KEY',
        'consumer_secret' => 'YOUR_TWITTER_CONSUMER_SECRET',
        'callback' => 'YOUR_TWITTER_CALLBACK_URL',
    ],
    ...
],
```

### Authenticate application

[](#authenticate-application)

```

```

### Callback action

[](#callback-action)

```
