Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mskian/onesignal-php
Send OneSignal Push Notification via PHP cURL
https://github.com/mskian/onesignal-php
api bootstrap4 onesignal onesignal-notifications onesignal-php php phpscript push-notifications
Last synced: 26 days ago
JSON representation
Send OneSignal Push Notification via PHP cURL
- Host: GitHub
- URL: https://github.com/mskian/onesignal-php
- Owner: mskian
- License: mit
- Created: 2018-10-31T13:05:20.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-10-31T13:46:59.000Z (about 6 years ago)
- Last Synced: 2024-11-07T22:48:46.519Z (3 months ago)
- Topics: api, bootstrap4, onesignal, onesignal-notifications, onesignal-php, php, phpscript, push-notifications
- Language: PHP
- Size: 37.1 KB
- Stars: 2
- Watchers: 4
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PHP Script to Send OneSignal Push Notifications
Send OneSignal Push Notification via PHP cURL
- PHP cURL
- OneSignal API
- Bootstrap4## Install
- Clone this Github Respo
```
git clone https://github.com/mskian/onesignal-php
```- Install dependency packages
```
cd onesignal-php
composer install
```- Add your OneSingal APP API KEY and APP ID in `.env` File (You can Find the APP ID and REST API KEY in your APP's Settings page)
```
touch .env
```File - `.env` 👇 👇 👇 put this on `.env` file
```
APIKEY = "YOUR REST API KEY"
APPID = "YOUR ONESIGNAL APP ID"
```- If you are going to Run this Script Locally then Execute with PHP CLI Built-in Web server
```
php -S localhost:8080
```or
```
php -S 127.0.0.1:8080
```### License
MIT