cybercog / php-pushwoosh
A PHP Library to easily send PUSH notifications with the Pushwoosh REST Web Services.
Fund package maintenance!
paypal.me/antonkomarev
Installs: 2 016
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 3
Forks: 4
Open Issues: 1
Requires
- php: ^8.0
- ext-curl: *
- ext-json: *
Requires (Dev)
- phpunit/phpunit: ^9.0|^10.0
- dev-master
- 2.1.0
- 2.0.0
- v1.x-dev
- 1.12.0
- 1.11.0
- 1.10.0
- 1.9.0
- 1.8.0
- 1.7.1
- 1.7.0
- 1.6.1
- 1.6.0
- 1.5.3
- 1.5.2
- 1.5.1
- 1.5.0
- 1.4.0
- 1.3.1
- 1.3.0
- 1.2.0
- 1.1.1
- 1.1.0
- 1.0.9
- 1.0.8
- 1.0.7
- 1.0.6
- 1.0.4
- 1.0.3
- 1.0.2
- 1.0.1
- 1.0.0
- 0.1.0
- 0.1.0-alpha5
- 0.1.0-alpha4
- 0.1.0-alpha3
- 0.1.0-alpha2
- 0.1.0-alpha1
- dev-fix-package-json-repository
This package is auto-updated.
Last update: 2024-11-19 15:51:21 UTC
README
A PHP Library to easily send PUSH notifications with the Pushwoosh REST Web Services.
Forked gomoob/php-pushwoosh because original project stalled.
Installation
Pull in the package through Composer.
composer require cybercog/php-pushwoosh
Usage
Sample of creating and sending the Pushwoosh message.
// 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 it's ok if ($response->isOk()) { print 'Great, my message has been sent !'; } else { print 'Oops, the sent failed :-('; print 'Status code : ' . $response->getStatusCode(); print 'Status message : ' . $response->getStatusMessage(); }
License
PHP Pushwoosh
package is open-sourced software licensed under the MIT license by Anton Komarev.
About CyberCog
CyberCog is a Social Unity of enthusiasts. Research the best solutions in product & software development is our passion.