Skip to content
Engagespot Push SDK for PHP
Branch: master
Clone or download
Latest commit c246a2b Feb 22, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
tests v2 commit Jul 22, 2018
.gitignore Update Feb 22, 2019
autoload.php Initial Commit Jul 28, 2016

Engagespot PHP SDK V2

Easiest way to implement user-specific web push notifications in PHP.

Engagespot helps you to add push notification functionality to your PHP web application (Supports Core PHP as well as frameworks including Laravel, Yii, Symphony etc). Before using this SDK, you need to create a free account at

Add push notifications to your web app in less than 10 mins!




First, you have to get your Site Key and API Key by creating a free web push notification account from Engagespot. You can create your free web push notification account here -

After that, follow the instructions below.

Via Composer

composer require engagespot/engagespot-php-sdk

If you donot want to use composer, you can load the autoload.php file directly.

require '/path/to/autoload.php';

Use the EngagespotPush Class from Engagespot namespace. Initialize the SDK using your SITE_KEY and API_KEY. You can find your keys on your Engagespot Dashboard -> Website Settings.

use \Engagespot\EngagespotPush;


Sending Push Notification

To send a push notification to all subscribers.


$data = ["campaignName" => "Test Campaign",
"title" => "From SDK", 
"message" => "This is from SDK!", 
"link" => "", 
"icon" => ""];



Sending Push to identifiers

If you want to send notification selected identifiers (that you have already mapped through Javascript SDK) call addIdentifiers() method before calling send()


EngagespotPush::addIdentifiers(array("id1", "id2"));

You can’t perform that action at this time.