PHPackages                             olexandrmazur/api-slack-php - 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. olexandrmazur/api-slack-php

ActiveLibrary[API Development](/categories/api)

olexandrmazur/api-slack-php
===========================

Easy in use, lightweight library for interaction with Slack API.

1.0.4(5y ago)06Apache-2.0PHPPHP &gt;=7.1

Since Sep 28Pushed 5y ago1 watchersCompare

[ Source](https://github.com/alexandrmazur96/api-slack-php)[ Packagist](https://packagist.org/packages/olexandrmazur/api-slack-php)[ RSS](/packages/olexandrmazur-api-slack-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (2)Versions (7)Used By (0)

PHP Slack
=========

[](#php-slack)

> Easy in use, lightweight library for interaction with Slack API.

An original repository - , but seems it's abandoned.

### Install

[](#install)

```
composer require olexandrmazur/api-slack-php

```

### 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:

```
