PHPackages                             frlnc/php-slack - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. frlnc/php-slack

ActiveLibrary[API Development](/categories/api)

frlnc/php-slack
===============

A lightweight PHP implementation of Slack's API.

1.0.3(10y ago)1291.2M↓46%38[8 issues](https://github.com/Frlnc/php-slack/issues)[3 PRs](https://github.com/Frlnc/php-slack/pulls)4MITPHPPHP &gt;=5.4.0

Since Sep 28Pushed 5y ago5 watchersCompare

[ Source](https://github.com/Frlnc/php-slack)[ Packagist](https://packagist.org/packages/frlnc/php-slack)[ RSS](/packages/frlnc-php-slack/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (4)Dependencies (2)Versions (6)Used By (4)

PHP Slack
=========

[](#php-slack)

> A lightweight PHP implementation of Slack's API.

### Provides

[](#provides)

- Frlnc\\Slack\\Contracts

    A small set of contracts to allow for the consumption of the Slack API. **Interactor**, **Response** and **ResponseFactory**.

    - **Interactor** is in charge of providing the Http GET/POST methods.
    - **Response** is in charge of providing a simple Http response wrapper for holding the body, headers and status code.
    - **ResponseFactory** is in charge of providing a factory to instantiate and build the **Response**.

To use this package, it's simple. Though *please note* that this implementation is very lightweight meaning you'll need to do some more work than usual. This package doesn't provide methods such as `Chat::postMessage(string message)`, it literally provides one method (`Commander::execute(string command, array parameters = [])`).

Here is a very simple example of using this package:

```
