PHPackages                             wonderpush/wonderpush-php-lib - 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. wonderpush/wonderpush-php-lib

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

wonderpush/wonderpush-php-lib
=============================

PHP library for WonderPush

v2.1.1(6y ago)5100.6k↓15.1%1[1 issues](https://github.com/wonderpush/wonderpush-php-lib/issues)[1 PRs](https://github.com/wonderpush/wonderpush-php-lib/pulls)Apache-2.0PHPPHP &gt;=5.3.3

Since Jul 26Pushed 1mo ago3 watchersCompare

[ Source](https://github.com/wonderpush/wonderpush-php-lib)[ Packagist](https://packagist.org/packages/wonderpush/wonderpush-php-lib)[ Docs](https://www.wonderpush.com/)[ RSS](/packages/wonderpush-wonderpush-php-lib/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (4)Versions (6)Used By (0)

WonderPush PHP library
======================

[](#wonderpush-php-library)

[![Build Status](https://camo.githubusercontent.com/11b5169a2e82be316d9b084ad9a92154346e3e63561fada346b073b695299069/68747470733a2f2f7472617669732d63692e6f72672f776f6e646572707573682f776f6e646572707573682d7068702d6c69622e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/wonderpush/wonderpush-php-lib)[![Latest Stable Version](https://camo.githubusercontent.com/9cd5ee17ebf8ee8233e859ca1ca28945f25426dcf96d57ef2a756edb9bd66dda/68747470733a2f2f706f7365722e707567782e6f72672f776f6e646572707573682f776f6e646572707573682d7068702d6c69622f76657273696f6e)](https://packagist.org/packages/wonderpush/wonderpush-php-lib)[![License](https://camo.githubusercontent.com/139a6af291f12c4465abf98fb2c3575d8014a700da48dd3c7d48286c7047463e/68747470733a2f2f706f7365722e707567782e6f72672f776f6e646572707573682f776f6e646572707573682d7068702d6c69622f6c6963656e73652e737667)](https://packagist.org/packages/wonderpush/wonderpush-php-lib)[![Coverage Status](https://camo.githubusercontent.com/525254098c2c149fb9559e2c7843e23402387fa781f30bc9d8e564f51c0851d2/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f776f6e646572707573682f776f6e646572707573682d7068702d6c69622f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/wonderpush/wonderpush-php-lib?branch=master)

Find the full WonderPush services documentation at: .

Introduction
------------

[](#introduction)

This project contain a PHP library for interacting with the WonderPush services. It helps you performing calls to the Management API. This contrasts with the SDKs, which are targeted at being integrated within your apps and handle interactions with the users.

### APIs

[](#apis)

WonderPush comes as two APIs, one aimed at the user devices, and the other optional one aimed at your servers and tools. The former is simply called the REST API, whereas the latter is called the Management API.

This tool helps you performing calls to the Management API.

#### Management API Reference

[](#management-api-reference)

All references for the WonderPush Management API are available on the WonderPush documentation pages: .

Documentation
-------------

[](#documentation)

Please see  for up-to-date documentation.

Requirements
------------

[](#requirements)

PHP 5.3.3 and later.

Composer
--------

[](#composer)

You can install the bindings via [Composer](http://getcomposer.org/). Run the following command:

```
composer require wonderpush/wonderpush-php-lib
```

To use the bindings, use Composer's [autoload](https://getcomposer.org/doc/00-intro.md#autoloading):

```
require_once('vendor/autoload.php');
```

Manual Installation
-------------------

[](#manual-installation)

If you do not wish to use Composer, you can download the [latest release](https://github.com/wonderpush/wonderpush-php-lib/releases). Then, to use the bindings, include the `init.php` file.

```
require_once('/path/to/wonderpush-php-lib/init.php');
```

Dependencies
------------

[](#dependencies)

The bindings require the following extension in order to work properly:

- [`curl`](https://secure.php.net/manual/en/book.curl.php)
- [`json`](https://secure.php.net/manual/en/book.json.php)

If you use Composer, these dependencies should be handled automatically. If you install manually, you'll want to make sure that these extensions are available.

Getting Started
---------------

[](#getting-started)

Simple usage looks like:

```
$wonderpush = new \WonderPush\WonderPush(WONDERPUSH_ACCESS_TOKEN, WONDERPUSH_APPLICATION_ID);
$response = $wonderpush->deliveries()->create(
    \WonderPush\Params\DeliveriesCreateParams::_new()
        ->setTargetSegmentIds('@ALL')
        ->setNotification(\WonderPush\Obj\Notification::_new()
            ->setAlert(\WonderPush\Obj\NotificationAlert::_new()
                ->setTitle('Using the PHP library')
                ->setText('Hello, WonderPush!')
            ))
);
echo $response->getNotificationId();
```

### Configuring a Logger

[](#configuring-a-logger)

The library does minimal logging, but it can be configured with a [`PSR-3` compatible logger](http://www.php-fig.org/psr/psr-3/) so that messages end up there instead of `error_log`:

```
$wonderpush->setLogger($logger);
```

Development
-----------

[](#development)

Install dependencies:

```
composer install
```

Tests
-----

[](#tests)

Install dependencies as mentioned above (which will resolve [PHPUnit](http://packagist.org/packages/phpunit/phpunit)), then you can run the test suite:

```
./test
```

Or to run an individual test file:

```
vendor/bin/phpunit tests/SomeTest.php
```

###  Health Score

45

—

FairBetter than 93% of packages

Maintenance55

Moderate activity, may be stable

Popularity37

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity62

Established project with proven stability

 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

Every ~340 days

Total

4

Last Release

2197d ago

Major Versions

v1.0.0 → v2.0.02019-09-25

### Community

Maintainers

![](https://www.gravatar.com/avatar/19e36d0096a6149b81458167527f9f57ea41b960353505e4dd01515ce6f614ae?d=identicon)[wonderpush](/maintainers/wonderpush)

---

Top Contributors

[![ofavre](https://avatars.githubusercontent.com/u/95129?v=4)](https://github.com/ofavre "ofavre (104 commits)")

---

Tags

notificationspush-notificationsweb-pushweb-push-notificationwonderpushwonderpush-apiapipush notificationwonderpush

###  Code Quality

TestsPHPUnit

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/wonderpush-wonderpush-php-lib/health.svg)

```
[![Health](https://phpackages.com/badges/wonderpush-wonderpush-php-lib/health.svg)](https://phpackages.com/packages/wonderpush-wonderpush-php-lib)
```

###  Alternatives

[hocza/sendy

Sendy API implementation for Laravel

71195.5k](/packages/hocza-sendy)[dropfan/onesignal-server-api

OneSignal server API for PHP, you can push notifications to any platform. (iOS/APNS, Android/GCM/FCM, WP, Web/Chrome/Safari...etc.) No third-party dependency that you can use this library in any project or framework.

169.2k](/packages/dropfan-onesignal-server-api)[tomatophp/filament-accounts

Manage your multi accounts inside your app using 1 table with multi auth and a lot of integrations

748.3k7](/packages/tomatophp-filament-accounts)[princealikhan/laravel-mautic-api

Free and Open Source Marketing Automation API

415.9k](/packages/princealikhan-laravel-mautic-api)

PHPackages © 2026

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