PHP code example of hashworks / phergie-plugin-wolfram-alpha

1. Go to this page and download the library: Download hashworks/phergie-plugin-wolfram-alpha 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/ */

    

hashworks / phergie-plugin-wolfram-alpha example snippets


// dependency
new \Phergie\Irc\Plugin\React\Command\Plugin,
new \hashworks\Phergie\Plugin\WolframAlpha\Plugin(array(
    'appid' => 'your-app-id', // Required. Set your appID. https://developer.wolframalpha.com/portal/apisignup.html
    'useMetric' => true, // Default. Use metric system for results.
    'processingReply' => true, // Default. Show or hide the 'Processing ...' reply.
    'limit' => 5// Default. Limit the number of lines send to a channel or user.
)),