shazam / php-slack
PHP Slack library
This package's canonical repository appears to be gone and the package has been frozen as a result. Email us for help if needed.
Installs: 582
Dependents: 0
Suggesters: 0
Security: 0
Stars: 7
Watchers: 6
Forks: 2
Open Issues: 0
pkg:composer/shazam/php-slack
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');