PHP code example of nfauchelle / phergie-keep-alive
1. Go to this page and download the library: Download nfauchelle/phergie-keep-alive 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/ */
nfauchelle / phergie-keep-alive example snippets
new \Phergie\Irc\Plugin\React\KeepAlive\Plugin(array(
// Seconds of inactivity before attmping reconnect
'timeout' => 600,
// Quit message on reconnect
'quitMessage' => 'Ping timeout, reconnecting...'
))
curl -s https://getcomposer.org/installer | php
php composer.phar install
./vendor/bin/phpunit