1. Go to this page and download the library: Download clue/quassel-react 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/ */
$factory->createClient('quassel://user:h%40llo@localhost')->then(
function (Client $client) {
// client sucessfully connected and authenticated
$client->on('data', function ($data) {
// next message to follow would be "SessionInit"
});
}
);
$client->on('data', function ($data) {
// process an incoming message (raw message object or array)
var_dump($data);
});
$client->on('end', function () {
// connection ended, client will close
});
$client->on('error', function (Exception $e) {
// an error occured, client will close
});
$client->on('close', function () {
// the connection to Quassel IRC just closed
});
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.