Send OneSignal Push Notification via PHP cURL
Send OneSignal Push Notification via PHP cURL
git clone https://github.com/mskian/onesignal-php
cd onesignal-php
composer install
.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"
php -S localhost:8080
or
php -S 127.0.0.1:8080
MIT