https://github.com/gomoob/php-pushwoosh
A PHP Library to easily send push notifications with the Pushwoosh REST Web Services.
https://github.com/gomoob/php-pushwoosh
gomoob notifications php php-api php-library php-pushwoosh push pushwoosh
Last synced: 11 days ago
JSON representation
A PHP Library to easily send push notifications with the Pushwoosh REST Web Services.
- Host: GitHub
- URL: https://github.com/gomoob/php-pushwoosh
- Owner: gomoob
- License: mit
- Created: 2014-05-20T08:59:56.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2020-10-06T06:26:20.000Z (over 4 years ago)
- Last Synced: 2025-03-31T10:06:19.237Z (18 days ago)
- Topics: gomoob, notifications, php, php-api, php-library, php-pushwoosh, push, pushwoosh
- Language: PHP
- Homepage: http://gomoob.github.io/php-pushwoosh
- Size: 2.24 MB
- Stars: 66
- Watchers: 8
- Forks: 38
- Open Issues: 19
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
- awesome-php - Php-pushwoosh - A PHP Library to easily send push notifications with the Pushwoosh REST Web Services. (Table of Contents / Notifications)
- awesome-php-cn - Php-pushwoosh - PHP库轻松地发送推送通知Pushwoosh REST Web服务. (目录 / 通知 Notifications)
- awesome-projects - Php-pushwoosh - A PHP Library to easily send push notifications with the Pushwoosh REST Web Services. (PHP / Notifications)
- awesome-php - Php-pushwoosh - A PHP Library to easily send push notifications with the Pushwoosh REST Web Services. (Table of Contents / Notifications)
README
# php-pushwoosh
> A PHP Library to easily send push notifications with the Pushwoosh REST Web Services.
[](https://packagist.org/packages/gomoob/php-pushwoosh)
[](https://packagist.org/packages/gomoob/php-pushwoosh)
[](https://travis-ci.org/gomoob/php-pushwoosh)
[](https://coveralls.io/r/gomoob/php-pushwoosh?branch=master)
[](https://codeclimate.com/github/gomoob/php-pushwoosh)
[](https://packagist.org/packages/gomoob/php-pushwoosh)## First sample, creating a Pushwoosh message
```php
// Create a Pushwoosh client
$pushwoosh = Pushwoosh::create()
->setApplication('XXXX-XXX')
->setAuth('xxxxxxxx');// Create a request for the '/createMessage' Web Service
$request = CreateMessageRequest::create()
->addNotification(Notification::create()->setContent('Hello Jean !'));// Call the REST Web Service
$response = $pushwoosh->createMessage($request);// Check if its ok
if($response->isOk()) {
print 'Great, my message has been sent !';
} else {
print 'Oups, the sent failed :-(';
print 'Status code : ' . $response->getStatusCode();
print 'Status message : ' . $response->getStatusMessage();
}
```Easy, isn't it ?
## Documentation
* [Documentation](http://gomoob.github.io/php-pushwoosh)
* [How to Contribute](http://gomoob.github.io/php-pushwoosh/contribute.html)## Framework Integrations
- **Laravel** - https://github.com/schimpanz/Laravel-Pushwoosh
- **Symfony 2** - https://github.com/Prezent/pushwoosh-bundleIf you have integrated php-pushwoosh into a popular PHP framework let us know !
## About Gomoob
At [Gomoob](https://www.gomoob.com) we build high quality software with awesome Open Source frameworks everyday. Would
you like to start your next project with us? That's great! Give us a call or send us an email and we will get back to
you as soon as possible !You can contact us by email at [[email protected]](mailto:[email protected]) or by phone number
[(+33) 6 85 12 81 26](tel:+33685128126) or [(+33) 6 28 35 04 49](tel:+33685128126).Visit also http://gomoob.github.io to discover more Open Source softwares we develop.