PHPackages                             piestar/slack-laravel - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. piestar/slack-laravel

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

piestar/slack-laravel
=====================

Laravel integration for the alek13/slack package, including a facade and service provider.

2.0.1(4y ago)05.7k↓50%BSD-2-ClausePHPPHP ^7.4|^8.0

Since Jun 25Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Piestar/slack-laravel)[ Packagist](https://packagist.org/packages/piestar/slack-laravel)[ RSS](/packages/piestar-slack-laravel/feed)WikiDiscussions master Synced 1mo ago

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

Slack for Laravel
=================

[](#slack-for-laravel)

This package allows you to use [Slack for PHP](https://github.com/php-slack/slack) easily and elegantly in your Laravel app. Read the instructions below to get setup, and then head on over to [Slack for PHP](https://github.com/php-slack/slack) for usage details.

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

[](#installation)

You can install the package using the [Composer](https://getcomposer.org/) package manager. You can install it by running this command in your project root:

```
composer require piestar/slack-laravel
```

Then [create an incoming webhook](https://my.slack.com/services/new/incoming-webhook) for each Slack team you'd like to send messages to. You'll need the webhook URL(s) in order to configure this package.

Add the `Piestar\Slack\Laravel\ServiceProvider` provider to the `providers` array in `config/app.php`:

```
'providers' => [
  Piestar\Slack\Laravel\SlackServiceProvider::class,
],
```

Then add the facade to your `aliases` array:

```
'aliases' => [
  ...
  'Slack' => Piestar\Slack\Laravel\Facade::class,
],
```

Finally, publish the config file with `php artisan vendor:publish`. You'll find it at `config/slack.php`.

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

[](#configuration)

The config file comes with defaults and placeholders. Configure at least one team and any defaults you'd like to change.

Usage
-----

[](#usage)

The Slack facade is now your interface to the library. Any method you see being called an instance of `Maknz\Slack\Client` is available on the `Slack` facade for easy use.

```
// Send a message to the default channel
\Slack::send('Hello world!');

// Send a message to a different channel
\Slack::to('#accounting')->send('Are we rich yet?');

// Send a private message
\Slack::to('@username')->send('psst!');
```

Now head on over to [Slack for PHP](https://github.com/php-slack/slack) for more examples, including attachments and message buttons.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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 ~633 days

Total

4

Last Release

1706d ago

Major Versions

1.1.1 → 2.0.02021-09-07

PHP version history (4 changes)1.0.0PHP &gt;=5.4.0

1.1.1PHP ^7.0

2.0.0PHP ^7.4

2.0.1PHP ^7.4|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/f68741a08ea83738e0e013d3c06f6eeea50aadd88bce9121740d150d070c5b8c?d=identicon)[claar](/maintainers/claar)

---

Top Contributors

[![tarekadam](https://avatars.githubusercontent.com/u/1118276?v=4)](https://github.com/tarekadam "tarekadam (6 commits)")[![claar](https://avatars.githubusercontent.com/u/402855?v=4)](https://github.com/claar "claar (3 commits)")[![maknz](https://avatars.githubusercontent.com/u/992356?v=4)](https://github.com/maknz "maknz (3 commits)")

---

Tags

laravelslack

### Embed Badge

![Health badge](/badges/piestar-slack-laravel/health.svg)

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

###  Alternatives

[maknz/slack-laravel

Laravel 4 and 5 integration for the maknz/slack package, including facades and service providers.

154969.3k1](/packages/maknz-slack-laravel)[jeremykenedy/slack-laravel

Laravel integration for the jeremykenedy/slack package, including facades and service providers.

54738.8k](/packages/jeremykenedy-slack-laravel)[razorpay/slack-laravel

Laravel 4 and 5 integration for the razorpay/slack package, including facades and service providers.

18375.3k1](/packages/razorpay-slack-laravel)[stephenjude/filament-blog

Filament Blog Builder

20317.8k](/packages/stephenjude-filament-blog)

PHPackages © 2026

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