PHPackages                             noveth/notify - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. noveth/notify

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

noveth/notify
=============

A PHP notification library for sending messages to various platforms

0.2.5(10y ago)146[1 PRs](https://github.com/noveth/Notify/pulls)MITPHPPHP &gt;=5.4.0

Since Sep 7Pushed 10y ago1 watchersCompare

[ Source](https://github.com/noveth/Notify)[ Packagist](https://packagist.org/packages/noveth/notify)[ Docs](https://github.com/noveth/Notify)[ RSS](/packages/noveth-notify/feed)WikiDiscussions master Synced 1mo ago

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

Notify [![Build Status](https://camo.githubusercontent.com/cf14960cb3142ec42ff8f28fc98be9aca02ac1e611ca0ba24273f2a1d761c794/68747470733a2f2f7472617669732d63692e6f72672f6e6f766574682f4e6f746966792e737667)](https://travis-ci.org/noveth/Notify)
=================================================================================================================================================================================================================================================

[](#notify-)

Notification library

Description
-----------

[](#description)

A PHP Library that will be used for sending notifications to multiple providers.

\##Implementations

### Current

[](#current)

- Email
- Slack

### Planned

[](#planned)

- HipChat

Requirements
------------

[](#requirements)

- PHP 5.4+
- CURL

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

[](#installation)

### Using Composer

[](#using-composer)

To install Notify with Composer, just add the following to your composer.json file:

```
{
    "require": {
        "noveth/notify": "0.*"
    }
}
```

or by running the following command:

```
composer require noveth/notify
```

Usage
-----

[](#usage)

### Configuration

[](#configuration)

There is a default configuration included and falls back to if no user configuration is found. To start using a custom configuration rename Config.php.example to Config.php.

### Email

[](#email)

Sending an email with Notify is incredibly simple, you pass 3 parameters and it will return true or false.

```
bool Notify\Email::send(string $to, string $subject, string $template [, array $replace ] );
```

There are 3 required parameters used in the send method with an optional 4th parameter if you use string replacement in your templates.

Here is an example of the parameters:

```
// Target email address
$to = 'example@example.com';

// Subject line
$subject = 'An example email';

// Template file name
// You can tell Notify if its a html email or not depending on the file extension
// .html files will automatically be sent as a html email
$template = 'user/registration.html';

// If you use tags in your template this is where you pass what to replace them with
$replace = [
  'test tag' => 'test content'
];
```

### Slack

[](#slack)

Notifications can also be sent to slack but requires a bit more setup than using email (dont worry its not too difficult). To use Slack notifications you need to setup a [webhook](http://slack.com/services/new/incoming-webhook) on your slack team settings first.

Follow the Configuration step above to start using a custom configuration and then add the following lines to your Config.php file.

```
// Replace {YOUR_ENDPOINT} with the webhook URL provided by slack.
Config::$SLACKWEBHOOK = '{YOUR_ENDPOINT}';
// Replace {NAME_OF_USER} with the user you want the message to be sent as (this can be anything).
Config::$SLACKUSERNAME = '{NAME_OF_USER}';
```

Slack notifications are sent in a similar fashion to Emails but only has 1 required parameter and 1 optional.

```
bool Notify\Slack::send(string $message [, string $target]);
```

The second parameter can either be a room or a user, this is done by following the syntax below. If its not sent it will use the default room set in your webhook settings on slack.

```
$target = '#channel';
$target = '@user';
```

---

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 77.8% 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 ~2 days

Total

7

Last Release

3890d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1bda509c3b46a6eeeea06a588060542c77d6be596195da3cb062fea8b54b8420?d=identicon)[noveth2012](/maintainers/noveth2012)

---

Top Contributors

[![fatjoeluke](https://avatars.githubusercontent.com/u/23631646?v=4)](https://github.com/fatjoeluke "fatjoeluke (77 commits)")[![noveth](https://avatars.githubusercontent.com/u/12838315?v=4)](https://github.com/noveth "noveth (19 commits)")[![bickmista](https://avatars.githubusercontent.com/u/3404254?v=4)](https://github.com/bickmista "bickmista (3 commits)")

---

Tags

notificationnotify

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/noveth-notify/health.svg)

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

###  Alternatives

[mouse0270/bootstrap-growl

This is a simple pluging that turns standard Bootstrap alerts into "Growl-like" notifications.

2.2k119.1k](/packages/mouse0270-bootstrap-growl)[symfony/notifier

Sends notifications via one or more channels (email, SMS, ...)

80640.3M290](/packages/symfony-notifier)[guanguans/notify

Push notification SDK(AnPush、Bark、Chanify、DingTalk、Discord、Gitter、GoogleChat、IGot、Lark、Mattermost、MicrosoftTeams、NowPush、Ntfy、Push、Pushback、PushBullet、PushDeer、PushMe、Pushover、PushPlus、QQ、RocketChat、ServerChan、ShowdocPush、SimplePush、Slack、Telegram、WeWork、WPush、XiZhi、YiFengChuanHua、ZohoCliq、ZohoCliqWebHook、Zulip).

682104.9k7](/packages/guanguans-notify)[machour/yii2-notifications

Notifications for your Yii2 app

9135.7k](/packages/machour-yii2-notifications)[helmesvs/laravel-notify

Elegant notifications to laravel with Toastr or PNotify

6127.3k](/packages/helmesvs-laravel-notify)[sarfraznawaz2005/noty

Laravel package to incorporate noty flash notifications into laravel.

324.4k](/packages/sarfraznawaz2005-noty)

PHPackages © 2026

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