https://github.com/irontec/push-notifications
Libreria para gestionar facilmente las notificaciónes push con Android e IOS.
https://github.com/irontec/push-notifications
Last synced: about 1 year ago
JSON representation
Libreria para gestionar facilmente las notificaciónes push con Android e IOS.
- Host: GitHub
- URL: https://github.com/irontec/push-notifications
- Owner: irontec
- License: eupl-1.1
- Created: 2016-05-09T16:45:42.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2016-05-30T17:31:10.000Z (about 10 years ago)
- Last Synced: 2025-04-12T19:12:02.287Z (about 1 year ago)
- Language: PHP
- Size: 9.77 KB
- Stars: 3
- Watchers: 15
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
PushNotifications
=================
Libreria para gestionar facilmente las notificaciónes push con Android e IOS.
Instalación
===========
### Instalación con Composer
````sh
composer require irontec/pushnotifications
````
or
````json
{
"require": {
"require irontec/pushnotifications": ">=1.0"
}
}
````
# Ejemplos
## Android
Envio de una notificación a un dispositivo Android
````php
setApikey('******');
$android->setDeviceToken('');
$android->setMessage('');
$android->setExtraData(array('a' => 1, 'b' => 2));
$android->send();
````
## IOS
Envio de una notificación a un dispositivo IOS
````php
setEnvironment(1);
$ios->setPassphraseDev('******');
$ios->setPemDev('/certs/dev/app.pem');
$ios->setWriteInterval(1);
$ios->setSendRetryTimes(1);
$ios->setConnectTimeout(1);
$ios->setExpiry(60);
$ios->setDeviceToken('');
$ios->setMessage('');
$ios->setExtraData(array('a' => 1, 'b' => 2));
$ios->send();
````