PHP code example of chrismou / phergie-irc-plugin-react-audioscrobbler

1. Go to this page and download the library: Download chrismou/phergie-irc-plugin-react-audioscrobbler 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/ */

    

chrismou / phergie-irc-plugin-react-audioscrobbler example snippets


new \Chrismou\Phergie\Plugin\Audioscrobbler\Plugin(array(
    'lastfm' => 'YOUR_API_KEY'
))

new \Phergie\Irc\Plugin\React\CommandHelp\Plugin(array(
    'plugins' => array(
        new \Chrismou\Phergie\Plugin\Audioscrobbler\Plugin(array(
            'lastfm' => true
        )),
    )
))

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