PHPackages                             donkfather/laravel-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. [HTTP &amp; Networking](/categories/http)
4. /
5. donkfather/laravel-onesignal

ActivePackage[HTTP &amp; Networking](/categories/http)

donkfather/laravel-onesignal
============================

A Onesignal package for Laravel 5.2 or higher

1.1.0(8y ago)0351MITPHPPHP &gt;=5.5.0

Since Jan 24Pushed 8y ago1 watchersCompare

[ Source](https://github.com/Donkfather/laravel-onesignal)[ Packagist](https://packagist.org/packages/donkfather/laravel-onesignal)[ RSS](/packages/donkfather-laravel-onesignal/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (3)Dependencies (2)Versions (9)Used By (0)

Laravel 5.2 OneSignal
---------------------

[](#laravel-52-onesignal)

A Onesignal package for Laravel 5.2 or higher

\##Installation

```
composer require donkfather/laravel-onesignal

```

After install this package you have to set the service provider on your config/app.php file

```
Donkfather\OneSignal\ServiceProvider::class,

```

To use the facade add this to the facades in app/config/app.php

```
'OneSignal' => \Donkfather\OneSignal\Facade\OneSignal::class

```

Then you just need to publish files ! Copy and paste it

```
php artisan vendor:publish --provider="Donkfather\OneSignal\ServiceProvider"

```

Setting up your OneSignal account on your **Environment** file

```
ONESIGNAL_APP_ID=759xxxxxxx

ONESIGNAL_API_KEY=MjYzxxxxxx

- User Auth Key -
ONESIGNAL_USER_AUTH_KEY=ZMOADxxxxxx

```

\##Example Usage

```
use Donkfather\OneSignal\Exceptions\FailedToSendNotificationException;
use Donkfather\OneSignal\Facade\OneSignal;

Route::get('/', function () {
    try {

        $res = OneSignal::SendNotificationToAll('Hello', 'World');

    } catch (FailedToSendNotificationException $e) {

        dd($e);
    }
    dd($res);
});

```

Methods supported by this package and their parameters can be found in the [API Reference](https://documentation.onesignal.com/reference)\##Issues

```

If you have any questions or issues, please open an Issue .

```

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 64.3% 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 ~40 days

Recently: every ~68 days

Total

8

Last Release

3159d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4688239?v=4)[Tudor Popescu](/maintainers/donkfather)[@donkfather](https://github.com/donkfather)

---

Top Contributors

[![donkfather](https://avatars.githubusercontent.com/u/4688239?v=4)](https://github.com/donkfather "donkfather (9 commits)")[![moathdev-zz](https://avatars.githubusercontent.com/u/21123747?v=4)](https://github.com/moathdev-zz "moathdev-zz (5 commits)")

### Embed Badge

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

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.9k](/packages/craftcms-cms)[illuminate/http

The Illuminate Http package.

11937.2M6.6k](/packages/illuminate-http)[jlevers/selling-partner-api

PHP client for Amazon's Selling Partner API

4335.4M2](/packages/jlevers-selling-partner-api)[spatie/laravel-export

Create a static site bundle from a Laravel app

673139.5k6](/packages/spatie-laravel-export)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

252.5k](/packages/eslazarev-wildberries-sdk)

PHPackages © 2026

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