PHPackages                             acurrieclark/ionic-php-pusher - 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. [API Development](/categories/api)
4. /
5. acurrieclark/ionic-php-pusher

Abandoned → [onsetsoftware/sns-push](/?search=onsetsoftware%2Fsns-push)Library[API Development](/categories/api)

acurrieclark/ionic-php-pusher
=============================

PHP SDK for Ionic Push Beta

v0.1(10y ago)25.7k1MITPHPPHP &gt;=5.5.0

Since Apr 4Pushed 9y ago1 watchersCompare

[ Source](https://github.com/acurrieclark/ionic-php-pusher)[ Packagist](https://packagist.org/packages/acurrieclark/ionic-php-pusher)[ RSS](/packages/acurrieclark-ionic-php-pusher/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

Ionic Push PHP SDK [![Build Status](https://camo.githubusercontent.com/981f7549c8e9d71863c9e07ae3ab5c28ed220691bf18d04780276b4a1dc8b923/68747470733a2f2f7472617669732d63692e6f72672f61637572726965636c61726b2f696f6e69632d7068702d7075736865722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/acurrieclark/ionic-php-pusher)
=========================================================================================================================================================================================================================================================================================================================================

[](#ionic-push-php-sdk-)

This package is a basic PHP SDK to assist with the sending of push notifications using the Ionic Push API.

Installation
------------

[](#installation)

`$ composer require acurrieclark/ionic-php-pusher`

Usage
-----

[](#usage)

```
// include autoloader if you haven't already
include_once('vendor/autoload.php');

use acurrieclark\IonicPhpPusher\Pusher;
use acurrieclark\IonicPhpPusher\PusherData;

// create an instance
$pusher = new Pusher(API_JWT_TOKEN);

// set an array of device tokens to push to. Can be a mix of Android and iOS devices
$device_tokens = ["android_token", "ios_token"];

// set which Ionic push profile you are using
$profile = IONIC_PUSH_PROFILE_NAME;

// the PusherData helper class provides a blank object to populate with notification data
// it is provided for convenience. Feel free to create your own object here
$notification = new PusherData();

$notification->title = "Message Title";
$notification->message = "Message Body";
$notification->ios->sound = "Default.caf";
$notification->ios->badge = 2;
$notification->android->title = "Android Title";
$notification->android->message = "Android Message";
$notification->android->data->style = 'inbox';
$notification->android->data->summaryText = "There are %n% updates";
$notification->android->sound = "default_alert";

try {

  // API endpoint to check you are using a valid token. This is not necessary before pushing
  $pusher->testApiAccess();

  // send your notification and output its response
  $response = $pusher->sendToTokens($tokens, $profile, $notification);
  print_r($response);

} catch (PusherException $e) {
  // any exceptions can be caught and handled here
  echo $e->getType().' - '.$e->getCode() .": ".$e->getMessage() . "\n";

  if ($e->hasResponse()) {
    print_r($e->getResponse());
  }
  else echo "No response\n";
}
```

License
-------

[](#license)

The MIT License (MIT). Please see the [License File](LICENSE) for more information.

Thanks
------

[](#thanks)

Builds on the work for the Ionic Alpha API done by [Vladimir Dmitrovskiy](https://github.com/dmitrovskiy "Vladimir Dmitrovskiy")

###  Health Score

27

—

LowBetter than 47% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3740d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/acb58632096e1de16b2071064640a960ea60dec3da8d8f5614733faadea7a4dc?d=identicon)[acurrieclark](/maintainers/acurrieclark)

---

Top Contributors

[![acurrieclark](https://avatars.githubusercontent.com/u/1306728?v=4)](https://github.com/acurrieclark "acurrieclark (8 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/acurrieclark-ionic-php-pusher/health.svg)

```
[![Health](https://phpackages.com/badges/acurrieclark-ionic-php-pusher/health.svg)](https://phpackages.com/packages/acurrieclark-ionic-php-pusher)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3661.2M46](/packages/tencentcloud-tencentcloud-sdk-php)[neuron-core/neuron-ai

The PHP Agentic Framework.

2.0k496.1k34](/packages/neuron-core-neuron-ai)[avalara/avataxclient

Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API.

528.3M7](/packages/avalara-avataxclient)[eslazarev/wildberries-sdk

Wildberries OpenAPI clients (generated).

252.5k](/packages/eslazarev-wildberries-sdk)[files.com/files-php-sdk

Files.com PHP SDK

2478.1k](/packages/filescom-files-php-sdk)[aimeos/prisma

A powerful PHP package for integrating media related Large Language Models (LLMs) into your applications

1942.4k4](/packages/aimeos-prisma)

PHPackages © 2026

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