PHPackages                             orukusaki/slackbundle - 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. orukusaki/slackbundle

ActiveSymfony-bundle[API Development](/categories/api)

orukusaki/slackbundle
=====================

Symfony2 Bundle for communicating with the Slack API

0.0.1(12y ago)102611[4 issues](https://github.com/orukusaki/slackbundle/issues)MITPHPPHP &gt;=5.4

Since Feb 27Pushed 11y ago2 watchersCompare

[ Source](https://github.com/orukusaki/slackbundle)[ Packagist](https://packagist.org/packages/orukusaki/slackbundle)[ Docs](http://github.com/orukusaki/slackbundle)[ RSS](/packages/orukusaki-slackbundle/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (2)Versions (2)Used By (0)

Slack Bundle
============

[](#slack-bundle)

[![Build Status](https://camo.githubusercontent.com/84a1deb74467365d4e14808ad472ac2d4be43d4a5f1d8a1a66d73373edb18afb/68747470733a2f2f7472617669732d63692e6f72672f6f72756b7573616b692f736c61636b62756e646c652e737667)](https://travis-ci.org/orukusaki/slackbundle)

This bundle provides

- A Guzzle client to access the Slack API
- A Cli command to monitor a group on an event loop, dispatching events to handle messages received.
- Controllers for recieving slash commands and outgoing webhooks
- A Behat context class to help with functional testing of your bot

This bundle is very much in alpha status

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

[](#installation)

```
composer require 'orukusaki/slackbundle'

```

Add these lines you your AppKernal::registerBundles

```
...
new Orukusaki\Bundle\SlackBundle\OrukusakiSlackBundle(),
new Misd\GuzzleBundle\MisdGuzzleBundle(),
...

```

Add config to config.yml:

```
orukusaki_slack:
    api_key:
    identity:
        username: My Api Bot
        emoji: ":space_invader:"

```

Recieving Slash commands and webhooks
-------------------------------------

[](#recieving-slash-commands-and-webhooks)

Add the bundle to your routing.yml

```
orukusaki_slack:
    resource: "@OrukusakiSlackBundle/Controller/"
    type:     annotation
    prefix:   /slack

```

In the Slack Integrations page, create a slash command pointing to /slack/slashcommand or a webhook pointing to /slack/webhook

Running as a Bot
----------------

[](#running-as-a-bot)

app/console slack:run &lt; group name &gt;

Adding your own commands
------------------------

[](#adding-your-own-commands)

Add an Event Listener which will be triggered every time a message is received. There are a couple of examples in the services.xml for this bundle:

```

```

To see what commands you can run against the API, have a look at Resources/config/webservices.xml

Behat Context
-------------

[](#behat-context)

This bundle includes a [Behat](http://behat.org/) context to help you create functional tests for your bot. To use it, you much first enable the Symfony2 Behat extension in your behat.yml:

```
composer require "behat/symfony2-extension" "*"

```

In behat.yml:

```
default:
    extensions:
        Behat\Symfony2Extension\Extension: ~

```

Then in the constructor of your FeatureContext, import the SlackContext:

```
$this->useContext('slack', new \Orukusaki\Bundle\SlackBundle\Context\SlackContext());

```

Use

```
bin/behat -dl

```

To see the steps now available to you.

Contributing
============

[](#contributing)

Any bug reports / feature requests should be raised on this [github page](https://github.com/orukusaki/slackbundle/issues)

PRs are welcome, please branch from master, and run your code through phpcs (PSR-2 standard) and phpcs-fixer before submitting.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance12

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

4454d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5ea51efb62fbcb5ed5c4a943d9df6b66af1bcb494f204751e1154afd5c623508?d=identicon)[orukusaki](/maintainers/orukusaki)

---

Top Contributors

[![orukusaki](https://avatars.githubusercontent.com/u/151793?v=4)](https://github.com/orukusaki "orukusaki (3 commits)")[![smatyas](https://avatars.githubusercontent.com/u/534550?v=4)](https://github.com/smatyas "smatyas (1 commits)")

---

Tags

apiSymfony2slack

### Embed Badge

![Health badge](/badges/orukusaki-slackbundle/health.svg)

```
[![Health](https://phpackages.com/badges/orukusaki-slackbundle/health.svg)](https://phpackages.com/packages/orukusaki-slackbundle)
```

###  Alternatives

[jolicode/slack-php-api

An up to date PHP client for Slack's API

2534.4M12](/packages/jolicode-slack-php-api)[mpociot/slack-client

A better Slack client, with RTM API support

51263.6k1](/packages/mpociot-slack-client)[nilportugues/jsonapi-bundle

Symfony 2 &amp; 3 JSON API Transformer Package

11446.0k](/packages/nilportugues-jsonapi-bundle)[lisennk/laravel-slack-web-api

Light Laravel wrapper for Slack Web API

2117.7k](/packages/lisennk-laravel-slack-web-api)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
