PHPackages                             mildjester/slackwebhock - 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. mildjester/slackwebhock

ActiveLibrary[API Development](/categories/api)

mildjester/slackwebhock
=======================

1.0.0(7y ago)024MITPHPPHP &gt;= 5.6.0

Since Nov 20Pushed 6y agoCompare

[ Source](https://github.com/mildjester/slackwebhock)[ Packagist](https://packagist.org/packages/mildjester/slackwebhock)[ RSS](/packages/mildjester-slackwebhock/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (2)DependenciesVersions (3)Used By (0)

Post Slack WebHock
==================

[](#post-slack-webhock)

(PHP 5 &gt;= 5.6.0, PHP 7)

This script post message to slack via "Incoming WebHocks".

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

[](#installation)

Download this script. or get via composer.

```
composer require mildjester/slackwebhock

```

Usage As Static CLASS
---------------------

[](#usage-as-static-class)

#### WAY1: Define constant variable

[](#way1-define-constant-variable)

```
use MildJester\SlackWebHock;

define('MJ_SLACK_URL', 'https://hooks.slack.com/services/1234567/8901234/5678901');
define('MJ_SLACK_NAME', 'my slack police man');
define('MJ_SLACK_EMOJI', ':cop:');
define('MJ_SLACK_COLOR', '#FF0000'); // red

SlackWebHock::send('#general', 'Honjitsu Ha Seiten Nari.');

```

#### WAY2: Set parameter via static functions

[](#way2-set-parameter-via-static-functions)

```
use MildJester\SlackWebHock;

SlackWebHock::setUrl('https://hooks.slack.com/services/1234567/8901234/5678901');
SlackWebHock::setName('obaq');
SlackWebHock::setEmoji(':ghost:');
SlackWebHock::setColor('#0000FF'); // blue

SlackWebHock::send('#general', 'Ura Meshi Ya.');

```

If you set parameter both way, constant variable and via static function. It apply constant variable.

Usage via CLI
-------------

[](#usage-via-cli)

```
php SlackWebHockCli.php "#general" "Honjitsu Ha Seiten Nari."

```

Before call. You have to set WebHock URL.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

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

Total

2

Last Release

2839d ago

Major Versions

0.5 → 1.0.02018-08-05

### Community

Maintainers

![](https://www.gravatar.com/avatar/07604a0b8b0a85592715e5146a5d3b0a7528f6312e8e952b54e167e11804ffc2?d=identicon)[mildjester](/maintainers/mildjester)

---

Top Contributors

[![mildjester](https://avatars.githubusercontent.com/u/16119464?v=4)](https://github.com/mildjester "mildjester (5 commits)")

### Embed Badge

![Health badge](/badges/mildjester-slackwebhock/health.svg)

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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