项目作者: mskian

项目描述 :
Send OneSignal Push Notification via PHP cURL
高级语言: PHP
项目地址: git://github.com/mskian/onesignal-php.git
创建时间: 2018-10-31T13:05:20Z
项目社区:https://github.com/mskian/onesignal-php

开源协议:MIT License

下载


PHP Script to Send OneSignal Push Notifications

Send OneSignal Push Notification via PHP cURL



  • PHP cURL
  • OneSignal API
  • Bootstrap4

Install

  • Clone this Github Respo
  1. git clone https://github.com/mskian/onesignal-php
  • Install dependency packages
  1. cd onesignal-php
  2. 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)
  1. touch .env

File - .env 👇 👇 👇 put this on .env file

  1. APIKEY = "YOUR REST API KEY"
  2. APPID = "YOUR ONESIGNAL APP ID"
  • If you are going to Run this Script Locally then Execute with PHP CLI Built-in Web server
  1. php -S localhost:8080

or

  1. php -S 127.0.0.1:8080

License

MIT