https://github.com/minds/surge
A php library for sending push notifications
https://github.com/minds/surge
Last synced: about 1 year ago
JSON representation
A php library for sending push notifications
- Host: GitHub
- URL: https://github.com/minds/surge
- Owner: Minds
- Created: 2015-01-29T22:56:12.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2021-01-12T14:10:24.000Z (over 5 years ago)
- Last Synced: 2025-04-29T21:14:54.341Z (about 1 year ago)
- Language: PHP
- Size: 24.4 KB
- Stars: 18
- Watchers: 11
- Forks: 18
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Surge
__A php library for push notifications__
[](https://magnum.travis-ci.com/Minds/Surge)
### Getting started
Add the following to your composer.json file.
````
{
"require": {
"Minds/Surge: "v1.0",
...
},
...
}
````
### Configure Apple Push Notifications (APN)
Ok, this is a bit of a pain. Follow carefully.
- Go to `https://developer.apple.com/` and follow the steps to create a new certificate. Create a Push Notification certificate and download.
- Add this certificat to your keychain (double clicking should do this).
- Navigate to Certificate and look for the certificate you just added.
- Ctrl click the certificate and click export. Enter a password.
- the run `openssl pkcs12 -in Certificates.p12 -out apns.pem -nodes -clcerts`
Then your app should be able to do the rest..
### Configure Google Push Notifications (GPN)
Google makes things easier, all you need is an API key. Go to https://console.developers.google.com/ and enable Push Notifictions.