PHP code example of phergie / phergie-irc-plugin-react-twitter
1. Go to this page and download the library: Download phergie/phergie-irc-plugin-react-twitter library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
phergie / phergie-irc-plugin-react-twitter example snippets
return [
'plugins' => [
// dependencies
new \WyriHaximus\Phergie\Plugin\Url\Plugin, // Emits url.host.twitter.com events
// configuration
new \Phergie\Irc\Plugin\React\Twitter\Plugin([
// ng OAuth token
'token' => '370773112-GmHxMAgYyLbNEtIKZeRNFsMKPR9EyMZeS9weJAEb'
// xt% - %created_at.relative% (%url%)', \DateTime::ISO8601)
])
]
];
curl -s https://getcomposer.org/installer | php
php composer.phar install
./vendor/bin/phpunit