OneSignal server API for PHP. No third-party dependency that you can use this library in any project or framework.
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.
There are several packages for OneSignal, but some rely on third-party library or certain framework components. That’s reason of this project.
You’ll need at least PHP 5.6.
install via composer:
composer require dropfan/onesignal-server-api
Of course you can clone
this project manually then move it into your projects.
git clone https://github.com/DropFan/onesignal-server-api.git
But for simple use,pass parameters by array rather than Object/Class (like ORM), you can move OneSignal.php into your projects only.
Surely, the ORM-style have not been finish. I will finish it later when I have enough time。
There are some samples in examples
dir.
https://github.com/DropFan/onesignal-server-api/tree/master/examples
You can follow the offical ducumention from OneSignal.
Author: Tiger(DropFan)
Email: [email protected]
Wechat: DropFan
Telegram: DropFan
I will complete follow list when I have enough time.