PHPackages                             pushassist/web-push-notifications - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Mail &amp; Notifications](/categories/mail)
4. /
5. pushassist/web-push-notifications

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

pushassist/web-push-notifications
=================================

Web Push Notifications for websites

6242PHP

Since Feb 16Pushed 8y ago3 watchersCompare

[ Source](https://github.com/PushAssist/Web-Push-Notifications)[ Packagist](https://packagist.org/packages/pushassist/web-push-notifications)[ RSS](/packages/pushassist-web-push-notifications/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

web-push-notifications
======================

[](#web-push-notifications)

Push Notification Delivery &amp; Analytics for Websites and Mobile

> Web Push Notifications is a PHP Library to quickly integrate and send push notifications with PushAssist REST API. Setup is easy just create a [Free Account](https://pushassist.com/pricing-plans/), verify your email address and login to your PushAssist Control Panel to get the API &amp; Secret Keys.

Initialization
--------------

[](#initialization)

Simply require and initialize the `PushAssist` class like:

```
require_once 'PushAssist.php';

```

Composer Installation
---------------------

[](#composer-installation)

To install PushAssist Class, simply:

```
$ composer require PushAssist/Web-Push-Notifications

```

Sending Out Notifications
-------------------------

[](#sending-out-notifications)

```
// Create an object
$push_notification = new PushAssist('YOUR API KEY', 'YOUR SECRET KEY');

$notification_array = array("notification" => array(
						    "title" => 'YOUR NOTIFICATION TITLE',
						    "message" => 'YOUR NOTIFICATION TITLE',
						    "redirect_url" => 'URL TO REDIRECT IF MESSAGE IS CLICKED',
						    "image" => 'MESSAGE IMAGE FULL PATH'),
                            //UTM is optional Keep it empty if you are not passing utm_params.
						    "utm_params" => array("utm_source" => $utm_source,
							"utm_medium" => $utm_medium,
							"utm_campaign" => $utm_campaign),
                            //Segments is optional notification send only for those who subscribers by this  segment.
						    "segments" => ('Sports', 'Hockey');
						);

$push_notification->pushassist_send_notification($notification_array)
```

Sending Out Campaigns
---------------------

[](#sending-out-campaigns)

```
// Create an object
$push_notification = new PushAssist('YOUR API KEY', 'YOUR SECRET KEY');

$campaign_array = array("campaign" => array(
						    "title" => 'YOUR CAMPAIGN TITLE',
						    "message" => 'YOUR CAMPAIGN TITLE',
						    "redirect_url" => 'URL TO REDIRECT IF MESSAGE IS CLICKED',
							"timezone" => 'TIME ZONE FORMAT(Y-M-D) 24 HOUR FORMAT',
						    "image" => 'MESSAGE IMAGE FULL PATH'),
                            //UTM is optional Keep it empty if you are not passing utm_params.
						    "utm_params" => array("utm_source" => $utm_source,
							"utm_medium" => $utm_medium,
							"utm_campaign" => $utm_campaign),
                            //Segments is optional Campaign send only for those who subscribers by this  segment.
						    "segments" => ('Sports', 'Hockey');
						);

$push_notification->pushassist_create_campaigns($campaign_array)
```

Add Segment
-----------

[](#add-segment)

```
// Create an object
$push_notification = new PushAssist('YOUR API KEY', 'YOUR SECRET KEY');

$segment_array = array("segment" => array(
								"segment_name" => 'YOUR SEGMENT NAME')
							);

$push_notification->pushassist_create_segments($segment_array);
```

Get Account Details
-------------------

[](#get-account-details)

```
// Create an object
$push_notification = new PushAssist('YOUR API KEY', 'YOUR SECRET KEY');

$push_notification->pushassist_account_details();
```

Get Dashboard Details
---------------------

[](#get-dashboard-details)

```
// Create an object
$push_notification = new PushAssist('YOUR API KEY', 'YOUR SECRET KEY');

$push_notification->pushassist_dashboard_details();
```

Get Notification History
------------------------

[](#get-notification-history)

```
// Create an object
$push_notification = new PushAssist('YOUR API KEY', 'YOUR SECRET KEY');

$push_notification->pushassist_notification_history();
```

Get Notification Details By Id
------------------------------

[](#get-notification-details-by-id)

```
// Create an object
$push_notification = new PushAssist('YOUR API KEY', 'YOUR SECRET KEY');

$push_notification->pushassist_notification_details_by_id(ID);
```

Get Notification Details By Account Name
----------------------------------------

[](#get-notification-details-by-account-name)

```
// Create an object
$push_notification = new PushAssist('YOUR API KEY', 'YOUR SECRET KEY');

$push_notification->pushassist_notification_details_by_subdomain('ACCOUNT NAME');
```

Get Campaign History
--------------------

[](#get-campaign-history)

```
// Create an object
$push_notification = new PushAssist('YOUR API KEY', 'YOUR SECRET KEY');

$push_notification->pushassist_campaigns_history();
```

Get Campaign Details By Id
--------------------------

[](#get-campaign-details-by-id)

```
// Create an object
$push_notification = new PushAssist('YOUR API KEY', 'YOUR SECRET KEY');

$push_notification->pushassist_campaigns_details_by_id(ID);
```

Get Campaign Details By Account Name
------------------------------------

[](#get-campaign-details-by-account-name)

```
// Create an object
$push_notification = new PushAssist('YOUR API KEY', 'YOUR SECRET KEY');

$push_notification->pushassist_campaigns_details_by_subdomain('ACCOUNT NAME');
```

Get Segment Details
-------------------

[](#get-segment-details)

```
// Create an object
$push_notification = new PushAssist('YOUR API KEY', 'YOUR SECRET KEY');

$push_notification->pushassist_segment_details();
```

Get Segment Details By Id
-------------------------

[](#get-segment-details-by-id)

```
// Create an object
$push_notification = new PushAssist('YOUR API KEY', 'YOUR SECRET KEY');

$push_notification->pushassist_segment_details_by_id(ID);
```

Get Segment Details By Name
---------------------------

[](#get-segment-details-by-name)

```
// Create an object
$push_notification = new PushAssist('YOUR API KEY', 'YOUR SECRET KEY');

$push_notification->pushassist_segment_details_by_name('SEGMENT NAME');
```

Get Segment Counts
------------------

[](#get-segment-counts)

```
// Create an object
$push_notification = new PushAssist('YOUR API KEY', 'YOUR SECRET KEY');

$push_notification->pushassist_segment_count();
```

Get Subscribers Details
-----------------------

[](#get-subscribers-details)

```
// Create an object
$push_notification = new PushAssist('YOUR API KEY', 'YOUR SECRET KEY');

$push_notification->pushassist_subscribers_details();
```

Get Subscribers Details By Account Name
---------------------------------------

[](#get-subscribers-details-by-account-name)

```
// Create an object
$push_notification = new PushAssist('YOUR API KEY', 'YOUR SECRET KEY');

$push_notification->pushassist_subscribers_details_by_subdomain('ACCOUNT NAME');
```

Feel free to integrate web-push-notification by PushAssist into your favorite PHP Framework. If you need any assistance just let us know.

About PushAssist
----------------

[](#about-pushassist)

[PushAssist](https://pushassist.com) is a Push Notification SaaS service for sites. You can contact us by email at .

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 94.4% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/702c7a0af0b39e973b8ede10621a0251d6288bac48997c064f0d9ab614a495dd?d=identicon)[bluehaoran](/maintainers/bluehaoran)

---

Top Contributors

[![PushAssistTeam](https://avatars.githubusercontent.com/u/18683060?v=4)](https://github.com/PushAssistTeam "PushAssistTeam (17 commits)")[![joshaber](https://avatars.githubusercontent.com/u/13760?v=4)](https://github.com/joshaber "joshaber (1 commits)")

### Embed Badge

![Health badge](/badges/pushassist-web-push-notifications/health.svg)

```
[![Health](https://phpackages.com/badges/pushassist-web-push-notifications/health.svg)](https://phpackages.com/packages/pushassist-web-push-notifications)
```

###  Alternatives

[tijsverkoyen/css-to-inline-styles

CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.

5.8k505.3M227](/packages/tijsverkoyen-css-to-inline-styles)[minishlink/web-push

Web Push library for PHP

1.9k12.0M53](/packages/minishlink-web-push)[laravel-notification-channels/twilio

Provides Twilio notification channel for Laravel

2587.7M12](/packages/laravel-notification-channels-twilio)[spatie/url-signer

Generate a url with an expiration date and signature to prevent unauthorized access

4422.3M16](/packages/spatie-url-signer)[mattketmo/email-checker

Throwaway email detection library

2742.0M5](/packages/mattketmo-email-checker)[laravel-notification-channels/discord

Laravel notification driver for Discord.

2371.3M11](/packages/laravel-notification-channels-discord)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
