PHPackages                             conceptho/yii2-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. [API Development](/categories/api)
4. /
5. conceptho/yii2-onesignal

ActiveLibrary[API Development](/categories/api)

conceptho/yii2-onesignal
========================

Yii2 component for OneSignal.com integration

0.1.0(6y ago)011MITPHP

Since Aug 8Pushed 6y ago1 watchersCompare

[ Source](https://github.com/conceptho/yii2-onesignal)[ Packagist](https://packagist.org/packages/conceptho/yii2-onesignal)[ RSS](/packages/conceptho-yii2-onesignal/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)Dependencies (2)Versions (4)Used By (0)

yii2-onesignal
==============

[](#yii2-onesignal)

Yii2 component for OneSignal.com integration. Any contribution is highly encouraged!

This component is a [rocketfirm/yii2-onesignal](https://github.com/rocket-firm/yii2-onesignal) fork.

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

[](#installation)

Preferred way to install is through [Composer](https://getcomposer.org/doc/00-intro.md#installation-linux-unix-osx).

```
composer require romulo1984/yii2-onesignal

```

Configuration
-------------

[](#configuration)

Add following code to your configuration file (main.php):

```
'components' => [
  // ...

  'onesignal' => [
    'appId' => 'ONESIGNAL_APP_ID',
    'apiKey' => 'ONESIGNAL_API_KEY',
  ]
]
```

Usage
-----

[](#usage)

Run following command to send notifications:

```
$message = [
  "headers" => [
    "en" => "Notification Example"
  ],
  "contents" => [
    "en" => "Click for more info"
  ]
];

$options = [
  "template_id" => "your-template-id",
  "url" => "https://github.com/romulo1984/yii2-onesignal"
];

$filterOne = ["field" => "tag", "key" => "your_tag_here", "relation" => "=", "value" => "your_tag_value_here"];
$filterOne = ["field" => "tag", "key" => "your_tag_here", "relation" => "=", "value" => "your_tag_value_here"];

$notification = \Yii::$app->onesignal->notifications()->create($message["headers"], $message["contents"], $options);
$notification->filter($filterOne);
$notification->operatorOr();
$notification->filter($filterTwo);

$notification->send();
```

### Other methods:

[](#other-methods)

```
// Notifications
\Yii::$app->onesignal->notifications()->getAll($params);
\Yii::$app->onesignal->notifications($id)->getOne();

//Players (device)
\Yii::$app->onesignal->players()->getAll($params);
\Yii::$app->onesignal->players($id)->getOne();
\Yii::$app->onesignal->players($id)->edit($params);
\Yii::$app->onesignal->players($id)->addTag($tagName, $tagValue);
\Yii::$app->onesignal->players($id)->addTag($tagsArray);
\Yii::$app->onesignal->players($id)->removeTag($tagName);
```

Visit official [onesignal.com documentation](https://documentation.onesignal.com/) for more details.

###  Health Score

25

—

LowBetter than 35% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 64.7% 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 ~716 days

Total

3

Last Release

2229d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/636229?v=4)[Andre Metzen](/maintainers/andremetzen)[@andremetzen](https://github.com/andremetzen)

---

Top Contributors

[![naffiq](https://avatars.githubusercontent.com/u/3990098?v=4)](https://github.com/naffiq "naffiq (11 commits)")[![romulo1984](https://avatars.githubusercontent.com/u/1641962?v=4)](https://github.com/romulo1984 "romulo1984 (5 commits)")[![andremetzen](https://avatars.githubusercontent.com/u/636229?v=4)](https://github.com/andremetzen "andremetzen (1 commits)")

### Embed Badge

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

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.7M3.4k](/packages/craftcms-cms)[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.3M49](/packages/tencentcloud-tencentcloud-sdk-php)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

353.6k](/packages/eslazarev-wildberries-sdk)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k832.6k54](/packages/neuron-core-neuron-ai)[files.com/files-php-sdk

Files.com PHP SDK

2482.9k](/packages/filescom-files-php-sdk)[volcengine/volcengine-php-sdk

119.5k](/packages/volcengine-volcengine-php-sdk)

PHPackages © 2026

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