PHP code example of rcrowe / hippy

1. Go to this page and download the library: Download rcrowe/hippy 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/ */

    

rcrowe / hippy example snippets


$transport = new rcrowe\Hippy\Transport\Guzzle($token, $room, $from);
$hippy = new rcrowe\Hippy\Client($transport);

$message = new rcrowe\Hippy\Message(true, rcrowe\Hippy\Message::BACKGROUND_YELLOW);
$message->setText('test');

$hippy->send($message);

use rcrowe\Hippy\Facade as Hippy;

Hippy::init($token, $room, $from);
Hippy::html('<a href="#">test failed</a>');

Hippy::init($token, $room, $from);
Hippy::add('test 1');
Hippy::addHtml('test 2');
Hippy::go();