PHPackages                             mcrumm/phlack - 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. [HTTP &amp; Networking](/categories/http)
4. /
5. mcrumm/phlack

AbandonedArchivedLibrary[HTTP &amp; Networking](/categories/http)

mcrumm/phlack
=============

Slack API and WebHook integration in PHP

v0.7.0(10y ago)52251.4k↓22.3%8[1 issues](https://github.com/mcrumm/phlack/issues)1MITPHPPHP &gt;=5.4

Since Jan 24Pushed 9y ago9 watchersCompare

[ Source](https://github.com/mcrumm/phlack)[ Packagist](https://packagist.org/packages/mcrumm/phlack)[ RSS](/packages/mcrumm-phlack/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelog (8)Dependencies (10)Versions (24)Used By (1)

Phlack
======

[](#phlack)

[![Build Status](https://camo.githubusercontent.com/f4b4031416e5f9b3008def9aed326000a24e8a4df9e9c1b0d034319591a13261/68747470733a2f2f7472617669732d63692e6f72672f6d6372756d6d2f70686c61636b2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/mcrumm/phlack) [![Scrutinizer Quality Score](https://camo.githubusercontent.com/45100149c322e035a940a88cee94f3b4f2be5e9bd5855156d961dc38dedc784e/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d6372756d6d2f70686c61636b2f6261646765732f7175616c6974792d73636f72652e706e673f733d61613631666333653034666134303432633039383862396536363730393338663635636132316536)](https://scrutinizer-ci.com/g/mcrumm/phlack/) [![Code Coverage](https://camo.githubusercontent.com/5d1ec7423a48c4ab84becb86e40557eaf5f0edf397ab7099276b204e79966d18/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6d6372756d6d2f70686c61636b2f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/mcrumm/phlack/?branch=master) [![Total Downloads](https://camo.githubusercontent.com/4b64cf371a16b4ed7de3be0472bcb33bc7f286f86f592f9686ed589bdddff0ac/68747470733a2f2f706f7365722e707567782e6f72672f6d6372756d6d2f70686c61636b2f646f776e6c6f6164732e706e67)](https://packagist.org/packages/mcrumm/phlack) [![Latest Stable Version](https://camo.githubusercontent.com/692b1462eea21130edc2fb7b8fcc7ca76054ee61c2923b08b427b03d4b4a94a7/68747470733a2f2f706f7365722e707567782e6f72672f6d6372756d6d2f70686c61636b2f762f737461626c652e706e67)](https://packagist.org/packages/mcrumm/phlack) [![Latest Unstable Version](https://camo.githubusercontent.com/947173983e00596820ed2a60ceec4896235c669e1f9195cc2270a862561701b3/68747470733a2f2f706f7365722e707567782e6f72672f6d6372756d6d2f70686c61636b2f762f756e737461626c652e706e67)](https://packagist.org/packages/mcrumm/phlack) [![License](https://camo.githubusercontent.com/56498062f4a24b95f89e48be3a927af27b781fc63e4b6295aceb9b5955a3eaaa/68747470733a2f2f706f7365722e707567782e6f72672f6d6372756d6d2f70686c61636b2f6c6963656e73652e706e67)](https://packagist.org/packages/mcrumm/phlack)

Phlack eases the creation of [Slack Integrations](http://slack.com) in PHP.

- [Installation](#installation)
- [Basic Usage](#basic-usage)
    - [Send a Message](#send-a-message)
- [Advanced Usage](#advanced-usage)
    - [Legacy WebHook URLs](#legacy-webhook-urls)
    - [Factory Method](#factory-method)
    - [New Instance](#new-instance)
- [Messages](#messages)
    - [Creating Messages](#creating-messages)
        - [Message Builder](#message-builder)
        - [Attachment Builder](#attachment-builder)
        - [Message Object](#message-object)
    - [Sending Messages](#sending-messages)
        - [Custom Messages](#custom-messages)
        - [Message Response](#message-response)
    - [More Examples](#more-examples)
- [Slack API](#slack-api)
    - [Getting a Client](#getting-a-client)
    - [Methods](#api-methods)
    - [Resource Iterators](#resource-iterators)
    - [Examples](#more-api-examples)
- [Disclaimer](#disclaimer)
- [Credits](#credits)
- [Contributing](#contributing)
- [License](#license)

Installation
------------

[](#installation)

via [composer](https://packagist.org/packages/mcrumm/phlack):

```
composer require mcrumm/phlack

```

Basic Usage
-----------

[](#basic-usage)

### Send a Message

[](#send-a-message)

```
