PHPackages                             ladumor/one-signal - 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. ladumor/one-signal

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

ladumor/one-signal
==================

Laravel Wrapper for OneSignal.

v2.0.2(5mo ago)125348.5k↓43.1%24MITPHPPHP ^8.0CI failing

Since Jan 31Pushed 5mo ago1 watchersCompare

[ Source](https://github.com/shailesh-ladumor/one-signal)[ Packagist](https://packagist.org/packages/ladumor/one-signal)[ Fund](https://www.buymeacoffee.com/ladumor)[ RSS](/packages/ladumor-one-signal/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (10)Dependencies (3)Versions (20)Used By (0)

Laravel One Signal
==================

[](#laravel-one-signal)

Laravel One Signal is Laravel Wrapper for [One Signal](https://onesignal.com). One Signal is a great platform for send a push notification to your users. This package mentions in One Signal's official Document. you can see [here](https://documentation.onesignal.com/docs/other-cms-setup)

[![Total Downloads](https://camo.githubusercontent.com/31a8595ece63b7b3b200b02d7d3050239fdeaa9b9f1187fcd9239cc110f59dc9/68747470733a2f2f706f7365722e707567782e6f72672f6c6164756d6f722f6f6e652d7369676e616c2f646f776e6c6f616473)](https://packagist.org/packages/ladumor/one-signal)[![Daily Downloads](https://camo.githubusercontent.com/e22114e38121207e3db2591de15735b4ab7d8fb68e2be26c52231d8374c04b77/68747470733a2f2f706f7365722e707567782e6f72672f6c6164756d6f722f6f6e652d7369676e616c2f642f6461696c79)](https://packagist.org/packages/ladumor/one-signal)[![Monthly Downloads](https://camo.githubusercontent.com/4eec45914de2d02bb5c1c795c519006432b5c8e9c143dab1ebc5dcb408f5faae/68747470733a2f2f706f7365722e707567782e6f72672f6c6164756d6f722f6f6e652d7369676e616c2f642f6d6f6e74686c79)](https://packagist.org/packages/ladumor/one-signal)[![License](https://camo.githubusercontent.com/2b5e7fb72008b9ce513674e45a14af3446386e56053325e767b9b89a0fbae404/68747470733a2f2f706f7365722e707567782e6f72672f6c6164756d6f722f6f6e652d7369676e616c2f6c6963656e7365)](LICENSE.md)

[![Buy Me A Coffee](https://camo.githubusercontent.com/af7c4175cb725540f9b150c8450be14b719748cbe0445c56e51c70bb51fad263/68747470733a2f2f63646e2e6275796d6561636f666665652e636f6d2f627574746f6e732f76322f64656661756c742d7265642e706e67)](https://www.buymeacoffee.com/ladumor)

Give a Star if this package realy usefull to you. it's free 😆
=============================================================

[](#give-a-star-if-this-package-realy-usefull-to-you-its-free-laughing)

🎞️ here are video tutorials
---------------------------

[](#film_strip-here-are-video-tutorials)

#### How to install and how to implement notifications and devices APIs.

[](#how-to-install-and-how-to-implement-notifications-and-devices-apis)

[![](https://camo.githubusercontent.com/dd3e1b7989bbb2de3c4c960bbedf542a30dc04b16ce09ed816adad873b724d0b/68747470733a2f2f696d672e796f75747562652e636f6d2f76692f63315737756e4f773373342f302e6a7067)](https://youtu.be/c1W7unOw3s4)

#### how to implement Segment and Apps APIs.

[](#how-to-implement-segment-and-apps-apis)

[![](https://camo.githubusercontent.com/1c479deb475442d60aead360c024bf52e049394d4c58f922df7f50591388788f/68747470733a2f2f696d672e796f75747562652e636f6d2f76692f6d7869455a3448326367592f302e6a7067)](https://youtu.be/mxiEZ4H2cgY)

[![](https://camo.githubusercontent.com/d1f8d647f9ddb281993a716ddb5b1193617b70c972343927e4fdb5dc8e0cb775/68747470733a2f2f696d672e6275796d6561636f666665652e636f6d2f627574746f6e2d6170692f3f746578743d427579206d65206120636f6666656526656d6f6a693d26736c75673d6c6164756d6f7226627574746f6e5f636f6c6f75723d42443546464626666f6e745f636f6c6f75723d66666666666626666f6e745f66616d696c793d436f6f6b6965266f75746c696e655f636f6c6f75723d30303030303026636f666665655f636f6c6f75723d464644443030)](https://www.buymeacoffee.com/ladumor)

Requirements.
-------------

[](#requirements)

v2.0.0 is released with new features and new APIs with latest version of one signal. this version is supported in laravel 8 and more. if you want to use this package in laravel 7 or lower version than you can use [v1.0.0](https://github.com/shailesh-ladumor/one-signal/blob/master/v1.0.0-guide.md).

Contents
--------

[](#contents)

- [Installation](#installation)
    - [Publish the config file](#publish-the-config-file)
    - [Add Provider](#add-provider)
    - [Add Facade](#add-facade)
- [Usage](#usage)
    - [Messages](#messages)
        - [Send Notification](#send-notification)
            - [push](#push)
            - [email](#email)
            - [sms](#sms)
            - [Customise Contents](#customise-contents)
        - [Get Single Notification](#get-single-notification)
        - [Get All Notifications](#get-all-notifications)
        - [Cancel Notification](#cancel-notification)
        - [Notification History](#notification-history)
    - [Live Activities](#live-activities)
        - [Start Live Activity](#start-live-activity)
        - [Update Live Activity](#update-live-activity)
    - [User](#user)
        - [Create User](#create-user)
        - [View User](#view-user)
        - [Update User](#update-user)
        - [Delete User](#delete-user)
        - [View User Identity](#view-user-identity)
        - [View User Identity By Sponsorship](#view-user-identity-by-sponsorship)
        - [Create Alias](#create-alias)
        - [Create Alias by subscription](#create-alias-by-subscription)
        - [Delete Alias](#delete-alias)
    - [Subscription](#subscription)
        - [Create Subscription](#create-subscription)
        - [Update Subscription](#update-subscription)
        - [Delete Subscription](#delete-subscription)
        - [Transfer Subscription](#transfer-subscription)
        - [Unsubscribe Notification](#unsubscribe-notification)
    - [Template](#template)
        - [Create Template](#create-template)
        - [Update Template](#update-template)
        - [View Template](#view-template)
        - [View Templates](#view-templates)
        - [Delete Template](#delete-template)
        - [Copy Template](#copy-template)
    - [Segment](#segment)
        - [Create Segment (NEED PAID PLAN)](#create-segment)
        - [Delete Segment (NEED PAID PLAN)](#delete-segment)
    - [Apps](#apps)
        - [View Apps](#view-apps)
        - [View App](#view-app)
        - [Create App](#create-app)
        - [Update App](#update-app)
        - [View Outcomes](#view-outcomes)
- [User Device](#user-device)
- [Change Log](#change-log)
- [License](#license)

Watch Other Lavavel tutorial here
---------------------------------

[](#watch-other-lavavel-tutorial-here)

[![](https://camo.githubusercontent.com/78b94b1a27e59e40a309e49b70ed1d231ba18bdf25f4f93b7d57173cac6039b7/68747470733a2f2f696d672e796f75747562652e636f6d2f76692f794d7473674273714451732f302e6a7067)](https://www.youtube.com/channel/UCuCjzuwBqMqFdh0EU-UwQ-w?sub_confirmation=1))

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

[](#installation)

Install the package by the following command

```
composer require ladumor/one-signal:2.0.2

```

Publish the config file
-----------------------

[](#publish-the-config-file)

Run the following command to publish config file,

```
php artisan vendor:publish --provider="Ladumor\OneSignal\OneSignalServiceProvider"

```

Add Provider
------------

[](#add-provider)

Add the provider to your `config/app.php` into `provider` section if using lower version of laravel,

```
Ladumor\OneSignal\OneSignalServiceProvider::class,

```

Add Facade
----------

[](#add-facade)

Add the Facade to your `config/app.php` into `aliases` section,

```
'OneSignal' => \Ladumor\OneSignal\OneSignal::class,

```

Add ENV data
------------

[](#add-env-data)

Add your api keys and OneSignal app id to your `.env`,

```
ONE_SIGNAL_APP_ID=XXXXXX-XXXXXX-XXXXXX-XXXXXX  (YOUR APP ID)
ONE_SIGNAL_AUTHORIZE=XXXXXX                    (REST API KEY)
ONE_SIGNAL_AUTH_KEY=XXXXXXX                    (YOUR USER AUTH KEY)

```

You can call them into your code with,

Usage
-----

[](#usage)

### Send Notification

[](#send-notification)

#### Push

[](#push)

For send push notification, use the sendPush method by calling, you can refer this [docs](https://documentation.onesignal.com/reference/create-message) for more fields details.

```
$fields['include_aliases']['onesignal_id'] = ['xxxxxxxx-xxxx-xxx-xxxx-yyyyyyyyy'];
$message = 'hey!! this is test push.!'

OneSignal::sendPush($fields, $message);

```

Optionally, you can obtain the id of the notification like this,

```
$notificationID = OneSignal::sendPush($fields, $message);
echo $notificationID["id"];

```

#### SMS

[](#sms)

For send SMS notification, use the sendSMS method by calling,

```
$fields['include_aliases']['onesignal_id'] = ['xxxxxxxx-xxxx-xxx-xxxx-yyyyyyyyy'];
OR
$fields['include_phone_numbers'] = ['+15558675310'];

$fields['sms_from']= "+15558675309";

$message = 'hey!! this is test SMS.!'

OneSignal::sendSMS($fields, $message);

```

#### EMAIL

[](#email)

Ensure your Email [setup](https://documentation.onesignal.com/docs/email-setup) is complete. For send Email notification, use the sendEmail method by calling, see more payload param [here](https://documentation.onesignal.com/reference/email#schedule-delivery)

```
$fields = [
   'email_from_name' => 'Shailesh',
   'email_from_address' => "sml@gmail.com",
   'email_reply_to_address' => "reply@gmail.com",
   'email_subject' => "Welcome to Cat Facts",
   'email_body' => "html>Welcome to Cat Facts",
   'disable_email_click_tracking' => true,
   'include_unsubscribed' => true
];

$fields['include_aliases']['onesignal_id'] = ['xxxxxxxx-xxxx-xxx-xxxx-yyyyyyyyy'];
OR
$fields['include_email_tokens'] = ['sample@gmail.com'];

OneSignal::sendEmail($fields);

```

#### Customise Contents

[](#customise-contents)

You can customise a contents and pass it in fields. message does not required when you pass contents

```
$fields['include_aliases']['onesignal_id'] = ['xxxxxxxx-xxxx-xxx-xxxx-yyyyyyyyy'];
or
$fields['include_aliases']['external_id'] = ['xxxxxxxx-xxxx-xxx-xxxx-yyyyyyyyy'];

$fields['contents'] = array(
                          "en" => 'English Message',
                          "es" => 'Spanish Message',
                      );
OneSignal::sendPush($fields);

```

### Get Single Notification

[](#get-single-notification)

For retrieve single notification, use the `viewMessage` method with id param by calling,

```
OneSignal::viewMessage($notificationId);

```

You can check [here](https://documentation.onesignal.com/reference/view-message#response-data) return response format.

### Get All Notifications

[](#get-all-notifications)

For retrieve all notifications, use the `viewMessages` method by calling,

```
OneSignal::viewMessages();

```

### Cancel Notification

[](#cancel-notification)

To cancel a notification, use the cancelNotification method by calling,

```
$notificationID = 'xxxxxxxx-xxxx-xxx-xxxx-yyyyyyyyy';

OneSignal::cancelNotification($notificationID);

```

### Notification History

[](#notification-history)

For retrieve notification History, use the `getMessageHistory` method by calling,

```
$notificationID = 'xxxxxxxx-xxxx-xxx-xxxx-yyyyyyyyy';
$params = [
    'events' => 'sent', // required
    'email' => 'sample@gmail.com', // optional, he email address in which to deliver the report.
];

OneSignal::getMessageHistory($notificationID, $params);

```

### Start Live Activity

[](#start-live-activity)

This API lets you start a Live Activity by sending a Push Notification., use the `startLiveActivity` method by calling, See for more params [here](https://documentation.onesignal.com/reference/start-live-activity#body-parameters)

```
$params = [
    'activity_id' => '217aae2b-42ee-4097-bc3f-b7a6e9d15b9b'
];

OneSignal::startLiveActivity($activityType, $params);

```

### Update Live Activity

[](#update-live-activity)

Make updates and terminate running Live Activities, use the `updateLiveActivity` method by calling, See for more params [here](https://documentation.onesignal.com/reference/update-live-activity-api#body-parameters)

```
    $params = [
        'event' => 'update'
    ];

    OneSignal::updateLiveActivity($params);

```

### Create User

[](#create-user)

For register a new user in OneSignal’s system, use the `createUser` method by calling,

```

$params = [
        'properties' => [
            "tags" => [
                "foo"  => "bar",
                "this" => "that"
            ],
            "language"     =>  "en",
            "timezone_id"  =>  "America/Los_Angeles",
            "lat"          =>  37.7749,
            "long"         =>  -122.4194,
            "country"      =>  "US",
            "first_active" =>  1589788800,
            "last_active"  =>  1589788800,
            "purchases"    =>  0,
            "ip"           =>  3232235777
        ],
        'identity' = [
            "external_id"    => "An ID, defined by you, to refer to this user in the future",
            "facebook_id"    =>  "user_facebook_id",
            "amplitude_id"   =>  "user_amplitude_id",
            "mixpanel_id"    => "user_mixpanel_id",
            "custom_alias_N" =>  "An alternative ID you'll want for retrieving this user's profile data and tags"
        ],
        'subscriptions' => [
            [
                "type" => "Email",
                "token" =>  "sample@email.com",
                "enabled" => true,
            ],
            [
                "type" => "SMS",
                "token" =>  "phone_number_in_E.164_format",
                "enabled" => true,
            ],
            [
                 "type"=>  "iOSPush",
                 "token"=>  "20bdb8fb3bdadc1bef037eefcaeb56ad6e57f3241c99e734062b6ee829271b71",
                 "enabled"=>  true,
                 "notification_types"=>  1,
                 "session_time"=> 98,
                 "session_count"=> 6,
                 "sdk"=>  "",
                 "device_model"=>  "iPhone 14",
                 "device_os"=> "18.0",
                 "rooted"=>  false,
                 "test_type"=>  1,
                 "app_version"=>  "5.1.7",
                 "web_auth"=>  "",
                 "web_p256"=> : ""
            ]
        ];

    OneSignal::createUser($params);

```

### View User

[](#view-user)

For retrieve a user including aliases, properties, and subscriptions, use the `viewUser` method by calling,

```
    OneSignal::viewUser($onesignalId, $aliasId);

```

### Update User

[](#update-user)

For update a user’s properties, tags, and subscriptions, use the `updateUser` method by calling, You can refer [here](https://documentation.onesignal.com/reference/update-user#body-parameters) for more detail about $params

```
    OneSignal::updateUser($onesignalId, $aliasId, $params);

```

### Delete User

[](#delete-user)

Delete a user including all associated properties, subscriptions, and identity. use the `deleteUser` method by calling,

```
    OneSignal::deleteUser($onesignalId, $aliasId);

```

### View User Identity

[](#view-user-identity)

Retrieve a user’s identity, use the `viewUserIdentity` method by calling,

```
    OneSignal::viewUserIdentity($onesignalId, $aliasId);

```

### View User Identity By Sponsorship

[](#view-user-identity-by-sponsorship)

Retrieve a user’s identity by subscription, use the `viewUserIdentityBySubscription` method by calling,

```
    OneSignal::viewUserIdentityBySubscription($subscriptionId);

```

### Create Alias

[](#create-alias)

Create an alias for a user, use the `createAlias` method by calling, Refer docs [here](https://documentation.onesignal.com/reference/create-alias#how-to-use-this-api) for more details

```
    $params = [
        'external_id'  => "",
        'onesignal_id' => "",
    ];

    OneSignal::createAlias($onesignalId, $aliasId, $params);

```

### Create Alias by subscription

[](#create-alias-by-subscription)

Create an alias for a user by subscription, use the `createAliasBySubscription` method by calling, Refer docs [here](https://documentation.onesignal.com/reference/create-alias-by-subscription#how-to-use-this-api) for more details

```
    $params = [
        'external_id'  => "",
        'onesignal_id' => "",
    ];

    OneSignal::createAliasBySubscription($subscriptionId, $params);

```

### Delete Alias

[](#delete-alias)

Delete an alias for a user, use the `deleteAlias` method by calling, Refer docs [here](https://documentation.onesignal.com/reference/delete-alias) for more details

```
    OneSignal::deleteAlias($onesignalId, $aliasId, $aliasLabelToDelete);

```

### Create Subscription

[](#create-subscription)

Add a new subscription to your user. use the `createSubscription` method by calling, Refer docs [here](https://documentation.onesignal.com/reference/create-subscription#examples) for more body params

```
    $fields = [
        'subscription'  => [],
    ];

    OneSignal::createSubscription($fields);

```

### Update Subscription

[](#update-subscription)

Update an existing subscription, use the `updateSubscription` method by calling, Refer docs [here](https://documentation.onesignal.com/reference/update-subscription) for more details

```
     $fields = [
        'subscription'  => [],
    ];

    OneSignal::updateSubscription($subscriptionId, $fields);

```

### Delete Subscription

[](#delete-subscription)

Delete an existing subscription, use the `deleteSubscription` method by calling, Refer docs [here](https://documentation.onesignal.com/reference/delete-subscription) for more details

```
    OneSignal::deleteSubscription($subscriptionId);

```

### Transfer Subscription

[](#transfer-subscription)

Transfer a subscription to a different user, use the `transferSubscription` method by calling, Refer docs [here](https://documentation.onesignal.com/reference/transfer-subscription) for more details

```
    $fields = [
        'identity'  => [],
    ];

    OneSignal::transferSubscription($subscriptionId, $fields);

```

### Unsubscribe Notification

[](#unsubscribe-notification)

Unsubscribe a user from a notification, use the `unsubscribeNotification` method by calling, Refer docs [here](https://documentation.onesignal.com/reference/unsubscribe-with-token) for more details

```
    OneSignal::unsubscribeNotification($notificationId, $token);

```

### Create Template

[](#create-template)

Create a template for push, email and sms, use the `createTemplate` method by calling, Refer docs [here](https://documentation.onesignal.com/reference/create-template) for push, email and sms template

```
    $fields = [
        'name'  => "",
        'content' => [
            "en": "English Message"
        ],
        "sms_from"=>"+1234567890",
         "isSMS"=> true,
    ];

    OneSignal::createTemplate($fields);

```

### Update Template

[](#update-template)

update a template for push, email and sms, use the `updateTemplate` method by calling, Refer docs [here](https://documentation.onesignal.com/reference/update-template#examples) for push, email and sms template

```
    $fields = [
        'name'  => "",
        'content' => [
            "en": "English Message"
        ],
        "sms_from"=>"+1234567890",
        "isSMS"=> true,
    ];

    OneSignal::updateTemplate($templateId, $fields);

```

### View Template

[](#view-template)

For retrieve a template, use the `viewTemplate` method by calling,

```
    OneSignal::viewTemplate($templateId);

```

### View Templates

[](#view-templates)

For retrieve all templates, use the `viewTemplates` method by calling,

```
    $params = [
        'limit' => 10,
        'offset' => 0,
        'channel' => 'push',
     ];

    OneSignal::viewTemplates($params);

```

### Delete Template

[](#delete-template)

For delete a template, use the `deleteTemplate` method by calling,

```
    OneSignal::deleteTemplate($templateId);

```

### Copy Template

[](#copy-template)

For transfer a template, use the `copyTemplate` method by calling,

```
    $fields = [
        'target_app_id' => "",
    ];

    OneSignal::copyTemplate($templateId, $fields);

```

### Create Segment

[](#create-segment)

For add a new segment in your application, use the `createSegment` method by calling,

```
 $fields = [
         'name' => 'iOS, Android, Web',
         "filters" => array("field" => "device_type", "relation" => "=", "value" => "Android"),
     ];

return OneSignal::createSegment($fields);

```

You can check [here](https://documentation.onesignal.com/reference/create-segments#body-parameters) supported parameters and guide.

```
OneSignal::deleteSegment('YOUR_SEGMENT_ID')

```

### Delete Segment

[](#delete-segment)

You can check [here](https://documentation.onesignal.com/reference/delete-segments#how-to-use-this-api) for more guide.

Apps
----

[](#apps)

Note\*: `Auth key must be set in one-signal.php` how to get [auth\_key](https://documentation.onesignal.com/docs/keys-and-ids#organization-api-key)?

### View Apps

[](#view-apps)

View the details of all of your current OneSignal apps

```
 $apps = OneSignal::getApps();

```

You can check [here](https://documentation.onesignal.com/reference/view-apps) api response.

### View App

[](#view-app)

View the details of single of your current OneSignal app or other app by passing app id.

```
 // It's return default site which is configured in config.
 $app = OneSignal::getApp();

 // you can specify app id as wel but it's optional
 $app = OneSignal::getApp('YOUR_APP_ID');

```

You can check [here](https://documentation.onesignal.com/reference/view-an-app) api response.

### Create App

[](#create-app)

Creates a new OneSignal app.

```
 $fields = array(
        'name' => "TestByMe"
    );

 OneSignal::createApp($fields);

```

You can check [here](https://documentation.onesignal.com/reference/create-an-app) supported parameters and guide.

### Update App

[](#update-app)

Update a new OneSignal app.

```
 $fields = array(
        'name' => "TestByMe"
    );

 OneSignal::updateApp($fields);
 // you can pass second param as a appId if you want to update other app.. default take from config.

```

You can check [here](https://documentation.onesignal.com/reference/update-an-app) supported parameters and guide.

### View Outcomes

[](#view-outcomes)

View the details of all the outcomes associated with your app.

```
 $fields = array(
        'outcome_names'       => "os__click.count",
        'outcome_time_range'  => '1h',
        'outcome_platform'    => 0,
        'outcome_attribution' => 'direct'
    );

 OneSignal::getOutcomes($fields);   // with params
 OneSignal::getOutcomes();  // without any params
 // you can pass params in this method, it's optional.

```

You can check [here](https://documentation.onesignal.com/reference/view-outcomes) supported parameters and guide.

User Device
-----------

[](#user-device)

[![](https://camo.githubusercontent.com/59feebd3d40fcbb1104a3f554ec3b754f1b37674254fde3b0d8f069c1b1d958b/68747470733a2f2f696d672e796f75747562652e636f6d2f76692f774f483171735133534c382f302e6a7067)](https://youtu.be/wOH1qsQ3SL8)

You can generate a User Device APIs with just one command,

```
php artisan one-signal.userDevice:publish

```

this command generate following files,

- UserDeviceAPIController
- UserDeviceAPIRepository
- UserDevice (model)
- Migration

Also, do not forget to add following routes in to the `api.php` file.

```
use App\Http\Controllers\API\UserDeviceAPIController;

```

```
  Route::post('user-device/register', [UserDeviceAPIController::class, 'registerDevice']);
  Route::get('user-device/{playerId}/update-status', [UserDeviceAPIController::class, 'updateNotificationStatus']);

```

### Change Log

[](#change-log)

Please see [Change Log](CHANGELOG.md) here

### License

[](#license)

The MIT License (MIT). Please see [License](LICENSE.md) File for more information

###  Health Score

58

—

FairBetter than 98% of packages

Maintenance73

Regular maintenance activity

Popularity52

Moderate usage in the ecosystem

Community17

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 93.2% 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 ~129 days

Recently: every ~238 days

Total

18

Last Release

154d ago

Major Versions

v0.4.4 → v1.0.02023-06-22

v1.0.1 → v2.0.02025-01-13

PHP version history (3 changes)v0.1.0PHP &gt;=5.4.0

0.4.2PHP ^7.2.5|^8.0

v2.0.0PHP ^8.0

### Community

Maintainers

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

---

Top Contributors

[![shailesh-ladumor](https://avatars.githubusercontent.com/u/16555999?v=4)](https://github.com/shailesh-ladumor "shailesh-ladumor (109 commits)")[![ItsSkynet](https://avatars.githubusercontent.com/u/3202479?v=4)](https://github.com/ItsSkynet "ItsSkynet (6 commits)")[![fajarsulaksono](https://avatars.githubusercontent.com/u/202346?v=4)](https://github.com/fajarsulaksono "fajarsulaksono (1 commits)")[![KhidirDotID](https://avatars.githubusercontent.com/u/20750742?v=4)](https://github.com/KhidirDotID "KhidirDotID (1 commits)")

---

Tags

laravellaravel-one-signalone-signalphppush-notificationsphplaravelpushnotificationone-signal

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/ladumor-one-signal/health.svg)

```
[![Health](https://phpackages.com/badges/ladumor-one-signal/health.svg)](https://phpackages.com/packages/ladumor-one-signal)
```

###  Alternatives

[brian2694/laravel-toastr

toastr.js for Laravel

136721.9k7](/packages/brian2694-laravel-toastr)[naif/nova-push-notification

A Laravel Nova tool to send push notifications via OneSignal

166.4k](/packages/naif-nova-push-notification)

PHPackages © 2026

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