shazam / php-slack
PHP Slack library
This package's canonical repository appears to be gone and the package has been frozen as a result.
1.0.0
2016-08-19 16:54 UTC
Requires
- php: >=5.3
This package is not auto-updated.
Last update: 2022-03-29 04:39:35 UTC
README
This library allows the developer to interact with Slack.
Usage
$token = "xoxp-2640873306-2668859284-2729881780-250123"; $client = new PhpSlack\Utils\RestApiClient($token); $slack = new PhpSlack\Slack($client); $slack->createChannel("test-slack-channel-1"); $slack->sendMessage('test-slack-channel-1', 'that is a test message'); $slack->addUserToChannel('test-slack-channel-1', 'Hans Solo');