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

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

jybtx/one-signal
================

One signal message push

v1.0.0(6y ago)0693MITPHPPHP &gt;=7.0.0

Since Oct 8Pushed 1y ago1 watchersCompare

[ Source](https://github.com/jybtx/one-signal)[ Packagist](https://packagist.org/packages/jybtx/one-signal)[ RSS](/packages/jybtx-one-signal/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (4)DependenciesVersions (5)Used By (0)

one-signal
==========

[](#one-signal)

测试消息推送用OneSignal

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

[](#installation)

### Composer

[](#composer)

Execute the following command to get the latest version of the package:

```
composer require jybtx/one-signal

```

### Laravel

[](#laravel)

#### &gt;= laravel5.5

[](#-laravel55)

ServiceProvider will be attached automatically

#### Other

[](#other)

In your `config/app.php` add `Jybtx\OneSignal\Providers\OneSignalServiceProvider::class` to the end of the `providers` array:

```
'providers' => [
    ...
    Jybtx\\OneSignal\\Providers\\OneSignalServiceProvider::class,
],
'aliases'  => [
    ...
    "OneSignal": Jybtx\OneSignal\Faceds\OneSignalFacade::class,
]
```

Publish Configuration

```
php artisan vendor:publish --provider "Jybtx\OneSignal\Providers\OneSignalServiceProvider"
```

Usage
-----

[](#usage)

### Register a message push ID for the user at registration time

[](#register-a-message-push-id-for-the-user-at-registration-time)

```
use OneSignal;
OneSignal::registerPlayerId($identifier,$device_type,$device_os='',$device_model='');
```

### Send messages to all users

[](#send-messages-to-all-users)

```
OneSignal::sendMessageAllUsers($title,$txt,$time=null,$data = array());
```

### Based on OneSignal PlayerIds sending

[](#based-on-onesignal-playerids-sending)

```
OneSignal::sendMessageSomeUser($title,$txt,$users,$data = array());
```

### Cancellation notice

[](#cancellation-notice)

```
OneSignal::revokeMessage($notifId);
```

### send Message For Tags

[](#send-message-for-tags)

```
OneSignal::sendMessageUsingTags($title,$txt, $tags, $url = NULL, $data = NULL, $buttons = NULL, $subtitle = NULL);
```

### View notifications

[](#view-notifications)

```
OneSignal::getNotifications($limit = NULL, $offset = NULL, $kind = 1 );
```

### Generate a compressed CSV export of all of your current user data

[](#generate-a-compressed-csv-export-of-all-of-your-current-user-data)

```
OneSignal::getAllUserToExportCsv();
```

License
=======

[](#license)

MIT

###  Health Score

30

—

LowBetter than 65% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity56

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

Total

4

Last Release

2393d ago

Major Versions

V0.1.2 → v1.0.02019-10-21

### Community

Maintainers

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

---

Top Contributors

[![jybtx](https://avatars.githubusercontent.com/u/34736990?v=4)](https://github.com/jybtx "jybtx (2 commits)")

---

Tags

onesignal

### Embed Badge

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

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

###  Alternatives

[tijsverkoyen/css-to-inline-styles

CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.

5.8k505.3M228](/packages/tijsverkoyen-css-to-inline-styles)[berkayk/onesignal-laravel

OneSignal Push Wrapper Laravel

5295.9M12](/packages/berkayk-onesignal-laravel)[minishlink/web-push

Web Push library for PHP

1.9k12.0M52](/packages/minishlink-web-push)[mattketmo/email-checker

Throwaway email detection library

2742.0M5](/packages/mattketmo-email-checker)[netflie/laravel-notification-whatsapp

Laravel notification driver for WhatsApp

176173.9k](/packages/netflie-laravel-notification-whatsapp)[dropfan/onesignal-server-api

OneSignal server API for PHP, you can push notifications to any platform. (iOS/APNS, Android/GCM/FCM, WP, Web/Chrome/Safari...etc.) No third-party dependency that you can use this library in any project or framework.

169.2k](/packages/dropfan-onesignal-server-api)

PHPackages © 2026

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