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

ActiveLibrary[API Development](/categories/api)

skygdi/slack
============

Shared Slack integration for Laravel

v1.0.4(1mo ago)0106MITBladePHP ^8.1

Since Dec 23Pushed 1mo agoCompare

[ Source](https://github.com/skygdi/laravel-shared-slack)[ Packagist](https://packagist.org/packages/skygdi/slack)[ RSS](/packages/skygdi-slack/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (3)Versions (5)Used By (0)

Slack Dashboard Package
=======================

[](#slack-dashboard-package)

A simple Laravel package for sending Slack notifications and viewing them in a dashboard.

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

[](#installation)

```
composer require skygdi/slack
```

Features
--------

[](#features)

- Send Slack messages from Laravel
- Log informational messages
- Use a default Slack channel from `.env`
- Simple dashboard route for viewing package output

Environment Variables
---------------------

[](#environment-variables)

Add these values to your `.env` file:

```
SLACK_BOT_TOKEN=xoxb-your-token
SLACK_DEFAULT_CHANNEL=sanmar
SLACK_ROLE=Worker2
```

### Variables

[](#variables)

- `SLACK_BOT_TOKEN`Your Slack bot token.
- `SLACK_DEFAULT_CHANNEL`The default Slack channel name to send messages to.
- `SLACK_ROLE`The worker or role name that will appear in messages.

Usage
-----

[](#usage)

### Example

[](#example)

```
use Skygdi\Slack\SlackGate;

SlackGate::info('SanMar DIP import raw variants finished', [
    'total_rows' => $totalRows,
]);
```

### Example Output

[](#example-output)

This sends an info message to Slack with extra context data.

Dashboard
---------

[](#dashboard)

Visit:

```
/slack_dashboard

```

to access the dashboard.

Basic Example
-------------

[](#basic-example)

```
SlackGate::info('Import finished', [
    'total_rows' => 1200,
    'source' => 'SanMar',
]);
```

Suggested Use Cases
-------------------

[](#suggested-use-cases)

- import completed
- import failed
- background job status
- webhook activity
- sync finished
- warning or error reporting

Notes
-----

[](#notes)

- Make sure your Slack bot has permission to post in the target channel.
- Make sure the channel exists and the bot has been added to it.
- Keep your Slack bot token private and never commit it to source control.

Security
--------

[](#security)

Do not commit real `.env` values to GitHub or any public repository.

Use this in your `.env.example` instead:

```
SLACK_BOT_TOKEN=
SLACK_DEFAULT_CHANNEL=
SLACK_ROLE=
```

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance91

Actively maintained with recent releases

Popularity9

Limited adoption so far

Community2

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

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 ~50 days

Total

4

Last Release

42d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/20422201?v=4)[Peter George](/maintainers/skygdi)[@skygdi](https://github.com/skygdi)

### Embed Badge

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

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

###  Alternatives

[defstudio/telegraph

A laravel facade to interact with Telegram Bots

816333.6k3](/packages/defstudio-telegraph)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5021.9k](/packages/simplestats-io-laravel-client)[rapidez/core

Rapidez Core

1823.5k72](/packages/rapidez-core)

PHPackages © 2026

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