GrowthPush is push notification and analysis platform for smart devices. GrowthPush SDK for PHP provides registration function of client devices and events.
require './growthpush-php-sdk/GrowthPush.php';
$growthPush = new GrowthPush(YOUR_APP_ID,'YOUR_APP_SECRET');
$client = $growthPush->createClient('DEVICE_TOKEN','ios');
If you want to track events of client devices, the following code are useful.
$event = $growthPush->createEvent('DEVICE_TOKEN', 'Launch');
You can tag the devices.
$tag = $growthPush->createTag('DEVICE_TOKEN', 'Gender', 'male');
You can send push notification to device's your application has.
$apiNotification = $this->growthPush->createNotification('text', 'segmentation query json', 'true/false for sound', 'true/false for badge', 'custom json in payload');
That's all. Client devices can be browsed with dashboard. You can send push notifications to the devices and analyze the events.
Licensed under the Apache License.