PHPackages                             abgit/onesignal - 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. abgit/onesignal

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

abgit/onesignal
===============

A simple onesignal php wrapper

0.0.2(6y ago)018PHP

Since Sep 12Pushed 6y ago1 watchersCompare

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

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

onesignal
=========

[](#onesignal)

A simple onesignal php wrapper

### send a push notification

[](#send-a-push-notification)

```
$onesignal = new abgit\onesignal( 'app_id', 'app_key' );

$notification = [
            'headings' => [
                'en' => 'Title'
            ],
            'contents' => [
                'en' => 'Notification message'
            ],
            'subtitle' => [
                'en' => 'subtitle'
            ],
            'channel_for_external_user_ids' => 'push',
            'include_external_user_ids' => ['xpto-12345-6780'],
            'data' => ['foo' => 'bar']
        ];

if( $onesignal->send( $result, $notification ){
   // ... do something with $result
}
```

### send an email

[](#send-an-email)

```
$onesignal = new abgit\onesignal( 'app_id', 'app_key' );

$notification = [
            'email_subject' => 'hello',
            'template_id' => '77ca0b25-13b8-....',
            'channel_for_external_user_ids' => 'email',
            'include_external_user_ids' => ['xpto-12345-6780']
        ];

if( $onesignal->send( $result, $notification ){
   // ... do something with $result
}
```

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity49

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

Total

2

Last Release

2440d ago

### Community

Maintainers

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

---

Top Contributors

[![abgit](https://avatars.githubusercontent.com/u/5169137?v=4)](https://github.com/abgit "abgit (3 commits)")

### Embed Badge

![Health badge](/badges/abgit-onesignal/health.svg)

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

###  Alternatives

[yourls/yourls

Your Own URL Shortener

11.9k27.7k1](/packages/yourls-yourls)

PHPackages © 2026

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