PHPackages                             partfire/slack-bundle - 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. partfire/slack-bundle

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

partfire/slack-bundle
=====================

A set of Symfony services for use in your project to integrate with Slack API faster.

v1.0.2(7y ago)3262[4 PRs](https://github.com/PartFire/SlackBundle/pulls)MITPHPPHP ^7.1

Since Sep 25Pushed 4y ago2 watchersCompare

[ Source](https://github.com/PartFire/SlackBundle)[ Packagist](https://packagist.org/packages/partfire/slack-bundle)[ RSS](/packages/partfire-slack-bundle/feed)WikiDiscussions master Synced 2mo ago

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

Slack Bundle for Symfony
========================

[](#slack-bundle-for-symfony)

[![Packagist](https://camo.githubusercontent.com/a4b7a1d8377c4252b62962b12857454a352b488c7f58770dcbcadcffaf57247b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f646f637472696e652f6f726d2e737667)](https://packagist.org/packages/partfire/slack-bundle)[![Twitter Follow](https://camo.githubusercontent.com/2a8710a167599668ddbb3817d9b322d7148f7e42210fc604612f8a1ac48dec28/68747470733a2f2f696d672e736869656c64732e696f2f747769747465722f666f6c6c6f772f657370616472696e652e7376673f7374796c653d736f6369616c266c6162656c3d466f6c6c6f77)](https://twitter.com/partfire)

A set of Symfony services for use in your project to ease integration with Slack.

This bundle depends upon the [official slack SDK PHP](https://github.com/threadmeup/slack-sdk).

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

[](#installation)

Using composer you can simply require master for now until we have a stable release:

```
$ composer require partfire/slack-bundle:dev-master

```

Configuration
-------------

[](#configuration)

Add your details to your `app/config/parameters.yml` file. For example:

```
    slack_token: 123456789XXXXXXX
    slack_username: My-Website
    slack_team: My-Team
    slack_testing_channel_name: my-tests-channel
```

- slack\_username: refers to the name that will appear in the channel.
- slack\_team: is the team name when you created your team via Slack.
- slack\_testing\_channel\_name refers to the only channel which all messages are sent when the syfony environment is not `prod`. This is to allow us to not pollute the other channels for the production environment wehen testing etc.

Also add to your `app/AppKernel.php` file:

```
    new PartFire\SlackBundle\PartFireSlackBundle()
```

Example Usage
-------------

[](#example-usage)

### Send a Message from a controller

[](#send-a-message-from-a-controller)

```
    $this->container->get('part_fire_slack_service')->sendMessage(
        "This is an example message",
        'some-channel-name',
        ':muscle:'
    );
```

You can also use this service from any other class by simply injecting it if you are using the Symfony DI Container. E.g. you can add the following to the services.yml for your custom class to inject the messaging service:

```
    my_vendor_class_entry_name:
      class: MyVendor\MyBundle\MyClasses\MyClass
      arguments: ['@part_fire_slack_service']
```

Service List
------------

[](#service-list)

```
part_fire_slack_service

```

### Contributing

[](#contributing)

Feel free to add more methods to the services etc and create a pull request. I will merge them in if they follow the existing structure or you teach me a better way.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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

Every ~179 days

Total

3

Last Release

2794d ago

PHP version history (2 changes)v1.0.0PHP ^5.5.9 || ^7.0

v1.0.2PHP ^7.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/6d82ec3a7371293d686debf6214f923426cadc9ae0a6dd8d907ca9491c57edd8?d=identicon)[carlamo](/maintainers/carlamo)

---

Top Contributors

[![carlowens](https://avatars.githubusercontent.com/u/346840?v=4)](https://github.com/carlowens "carlowens (14 commits)")

### Embed Badge

![Health badge](/badges/partfire-slack-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/partfire-slack-bundle/health.svg)](https://phpackages.com/packages/partfire-slack-bundle)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[cravler/maxmind-geoip-bundle

Bundle integrating MaxMind GeoIP2 database into symfony application

27615.8k2](/packages/cravler-maxmind-geoip-bundle)[components-web-app/api-components-bundle

Creates a flexible API for a website's structure, reusable components and common functionality.

322.8k](/packages/components-web-app-api-components-bundle)

PHPackages © 2026

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