PHPackages                             richweber/yii2-phirehose - 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-phirehose

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

richweber/yii2-phirehose
========================

Yii2 extension to the Twitter Streaming API

v1.0.1(11y ago)52642GPLPHPPHP &gt;=5.2.0

Since Dec 18Pushed 9y ago1 watchersCompare

[ Source](https://github.com/RichWeber/yii2-phirehose)[ Packagist](https://packagist.org/packages/richweber/yii2-phirehose)[ Docs](https://github.com/fennb/phirehose)[ RSS](/packages/richweber-yii2-phirehose/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (5)Used By (0)

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

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

A PHP interface to the Twitter Streaming API (firehose, etc). This library makes it easy to connect to and consume the Twitter stream via the Streaming API.

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

[](#installation)

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

Either run

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

```

or add

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

```

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

Usage
-----

[](#usage)

### Component Configuration

[](#component-configuration)

```
'components' => [
    ...
    'stream' => [
        'class' => 'richweber\twitter\streaming\lib\Stream',
        'username' => '1111111111-pPylwxC33VekLORMEfBIqYq8qekK4SqiD8pQpTs',
        'password' => 'OpKLltXkXBIUd4RQLwY8slLg3iIo2BCpXlgvkqxEBn33X',
        'consumerKey' => 'rvyKdnYDN887ohIfQU8m7tnxy',
        'consumerSecret' => 'oCYPFJSRPVlelJhEUCGVE8Aps0s4GpEfvNFR1ESQ01xTcq0xYL',
        'method' => 'user',
        'format' => 'json',
    ],
    ...
],
```

### Building a Yii Console Command

[](#building-a-yii-console-command)

```
