jiemo/leanchat

Installs: 577

Dependents: 1

Suggesters: 0

Security: 0

Stars: 1

Watchers: 4

Forks: 0

Open Issues: 0

pkg:composer/jiemo/leanchat

2.1 2017-01-04 08:20 UTC

This package is not auto-updated.

Last update: 2025-10-12 02:20:26 UTC


README

<?php
use Jiemo\LeanChat\Client;
use Jiemo\LeanChat\Message\Attachment;
use Jiemo\LeanChat\Message\Body;

$body = new Body();
$body->title = '@所有人  测试' ;
$body->channel = '#test';
$body->displayUserName = 'test';
$body->displayUserAvatarUrl = 'http://example.com/t.png';
$attachment = new Attachment();
$attachment->color = Attachment::COLOR_WARNING;
$attachment->title = 'test'; 
$attachment->description = 'tset';
$body->addAttachment($attachment);
$client = new Client('http://xxx');
$client->send($body);
php bin/leanchat.php