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

AbandonedArchivedLibrary

osyou84/slack-notification
==========================

v1.0.0(6y ago)010[1 PRs](https://github.com/osyou84/slack-notification/pulls)MITPHPPHP &gt;=7.2.0CI passing

Since Jan 26Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/osyou84/slack-notification)[ Packagist](https://packagist.org/packages/osyou84/slack-notification)[ RSS](/packages/osyou84-slack-notification/feed)WikiDiscussions master Synced 6d ago

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

Slack Notification
==================

[](#slack-notification)

Slack NotificationはSlackのincoming-webhookを利用して通知を送りたいときに利用できます。
composerでインストールしてご利用ください。

Requirement
===========

[](#requirement)

- php 7.2.0

Installation
============

[](#installation)

```
 $ composer require osyou84/slack-notification

```

Usage
=====

[](#usage)

配信ターゲットを指定する
------------

[](#配信ターゲットを指定する)

### ワークスペース全てに通知を送る

[](#ワークスペース全てに通知を送る)

```
$sn = new SlackNotification;
$sn->targetWorkspace()
   ->send('メッセージ', 'WEBHOOK URL');
```

### チャンネル全体に通知を送る

[](#チャンネル全体に通知を送る)

```
$sn = new SlackNotification;
$sn->targetChannelAll()
   ->send('メッセージ', 'WEBHOOK URL');
```

### チャンネル内でアクティブなメンバーに通知を送る

[](#チャンネル内でアクティブなメンバーに通知を送る)

```
$sn = new SlackNotification;
$sn->targetActive()
   ->send('メッセージ', 'WEBHOOK URL');
```

### チャンネル内の指定したユーザーに

[](#チャンネル内の指定したユーザーに)

```
$sn = new SlackNotification;
$sn->setTargets(['USER_ID1', 'USER_ID2', '...'])
   ->send('メッセージ', 'WEBHOOK URL');
```

DEMO
====

[](#demo)

コマンド
----

[](#コマンド)

```
 $ php example/example.php

```

example.phpの実行方法
----------------

[](#examplephpの実行方法)

1. Slackアプリから通知を送りたいチャンネルにて、incoming-webhookアプリを追加してWebhook URLを発行する
2. git clone
3. トップディレクトリにて `$ php example/example.php`を実行し、Webhook URL・対象・メッセージを入力する

Author
======

[](#author)

- 斉藤 尚也

Lisence
=======

[](#lisence)

Slack Notification is under [MIT license](https://en.wikipedia.org/wiki/MIT_License).

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance53

Moderate activity, may be stable

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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

Unknown

Total

1

Last Release

2303d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/31245815?v=4)[Naoya Saito](/maintainers/osyou84)[@osyou84](https://github.com/osyou84)

---

Top Contributors

[![osyou84](https://avatars.githubusercontent.com/u/31245815?v=4)](https://github.com/osyou84 "osyou84 (2 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

PHPackages © 2026

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