2017 © Pedro Peláez
 

library phergie-irc-plugin-react-twitter

Phergie plugin for displaying data from tweets

image

phergie/phergie-irc-plugin-react-twitter

Phergie plugin for displaying data from tweets

  • Sunday, October 23, 2016
  • by elazar
  • Repository
  • 3 Watchers
  • 1 Stars
  • 179 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 7 Forks
  • 1 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

This project is abandoned

This repo is being kept for posterity and will be archived in a readonly state. If you're interested it can be forked under a new Composer namespace/GitHub organization., (*1)

phergie/phergie-irc-plugin-react-twitter

Phergie plugin for displaying data from tweets., (*2)

Build Status, (*3)

Install

The recommended method of installation is through composer., (*4)

{
    "require": {
        "phergie/phergie-irc-plugin-react-twitter": "dev-master"
    }
}

See Phergie documentation for more information on installing and enabling plugins., (*5)

Configuration

return [
    'plugins' => [
        // dependencies
        new \WyriHaximus\Phergie\Plugin\Url\Plugin, // Emits url.host.twitter.com events

        // configuration
        new \Phergie\Irc\Plugin\React\Twitter\Plugin([
            // required string containing OAuth consumer key
            'consumer_key' => 'xvz1evFS4wEEPTGEFPHBog'

            // required string containing OAuth consumer secret
            'consumer_secret' => '9z6157pUbOBqtbm0A0q4r29Y2EYzIHlUwbF4Cl9c'

            // required string containing OAuth token
            'token' => '370773112-GmHxMAgYyLbNEtIKZeRNFsMKPR9EyMZeS9weJAEb'

            // required string containing OAuth token secret
            'token_secret' => '9z6157pUbOBqtbm0A0q4r29Y2EYzIHlUwbF4Cl9c'

            // optional object implementing \Phergie\Irc\Plugin\React\Twitter\FormatterInterface
            // used to format tweets prior to their syndication
            'formatter' => new \Phergie\Irc\Plugin\React\Twitter\DefaultFormatter('<@%user.screen_name%> %text% - %created_at.relative% (%url%)', \DateTime::ISO8601)
        ])
    ]
];

Usage

  • twitter username - fetches and displays the last tweet by @username
  • twitter username 3 - fetches and displays the third last tweet by @username
  • twitter 1234567 - fetches and displays tweet number 1234567
  • http://twitter.com/username/statuses/1234567 - Url plugin routes to this plugin, same output as twitter 1234567

Tests

To run the unit test suite:, (*6)

curl -s https://getcomposer.org/installer | php
php composer.phar install
./vendor/bin/phpunit

License

Released under the BSD License. See LICENSE., (*7)

The Versions

23/10 2016

dev-master

9999999-dev

Phergie plugin for displaying data from tweets

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

plugin bot twitter irc phergie

21/03 2016

1.0.1

1.0.1.0

Phergie plugin for displaying data from tweets

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

plugin bot twitter irc phergie

13/03 2016

1.0.0

1.0.0.0

Phergie plugin for displaying data from tweets

  Sources   Download

BSD-2-Clause

The Requires

 

The Development Requires

plugin bot twitter irc phergie