PHPackages                             arthurkushman/slacky - 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. arthurkushman/slacky

ActiveLibrary[API Development](/categories/api)

arthurkushman/slacky
====================

A lightweight PHP implementation of Slack's API.

1.1.0(7y ago)116MITPHPPHP ^7.1

Since Sep 28Pushed 7y ago1 watchersCompare

[ Source](https://github.com/arthurkushman/slacky)[ Packagist](https://packagist.org/packages/arthurkushman/slacky)[ RSS](/packages/arthurkushman-slacky/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)Dependencies (3)Versions (7)Used By (0)

PHP Slack
=========

[](#php-slack)

[![Scrutinizer Code Quality](https://camo.githubusercontent.com/fe431dadbb8bddf0c8aabea1c502f65e7c80f9dfff0dfb49510667f3e08c409c/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6172746875726b7573686d616e2f736c61636b792f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/arthurkushman/slacky/?branch=master)[![Build Status](https://camo.githubusercontent.com/b22ab7fba7497af983d062b85fd362247daff6f4b9bbc97a67bb575a485cba21/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6172746875726b7573686d616e2f736c61636b792f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/arthurkushman/slacky/build-status/master)[![Code Intelligence Status](https://camo.githubusercontent.com/9bf2c6e9c685eddfe33561f095326ea38ae256f4eb93f4df4add01f917dbad92/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6172746875726b7573686d616e2f736c61636b792f6261646765732f636f64652d696e74656c6c6967656e63652e7376673f623d6d6173746572)](https://scrutinizer-ci.com/code-intelligence)[![codecov](https://camo.githubusercontent.com/85f7e2637f5c5a9956e39d7e6bacff27482888af5687345c9a58a42c373528a4/68747470733a2f2f636f6465636f762e696f2f67682f6172746875726b7573686d616e2f736c61636b792f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/arthurkushman/slacky)

> A lightweight PHP implementation of Slack's API.

### Why this lib was forked and recoded

[](#why-this-lib-was-forked-and-recoded)

- Legacy code (repo was left for &gt; 2 years) didn't allow to support new features of PHP&gt;=7.1
- Minor bugs and fragile functionality
- None unit-tests coverage

### Provides

[](#provides)

- Slacky\\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:

```
