PHPackages                             pushapi/client-php - 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. pushapi/client-php

ActiveLibrary[API Development](/categories/api)

pushapi/client-php
==================

A PHP standalone client that facilitates to developers the use of all the PushApi functionalities

v2.1.0(9y ago)55.0k↓100%2[1 PRs](https://github.com/watzenare/PushApi_Client/pulls)MITPHPPHP &gt;=5.5CI failing

Since Dec 17Pushed 8y ago2 watchersCompare

[ Source](https://github.com/watzenare/PushApi_Client)[ Packagist](https://packagist.org/packages/pushapi/client-php)[ RSS](/packages/pushapi-client-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (2)Versions (14)Used By (0)

PushApi\_Client
===============

[](#pushapi_client)

[![Build Status](https://camo.githubusercontent.com/1407cd33a91f96dd9b4ce438a51673bc7580090198a062783091b48d0858c604/68747470733a2f2f7472617669732d63692e6f72672f7761747a656e6172652f507573684170695f436c69656e742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/watzenare/PushApi_Client)[![Latest Stable Version](https://camo.githubusercontent.com/2c48db1cb014c19edf3226912be5c0da3c5b0b5267e6cc90262eb8b3a4dc61a6/68747470733a2f2f706f7365722e707567782e6f72672f707573686170692f636c69656e742d7068702f762f737461626c652e737667)](https://packagist.org/packages/pushapi/client-php)[![License](https://camo.githubusercontent.com/a6552bedb8842739ed82e420c4f76d17b4106fb24b939cd01ef71ee597ff35ae/68747470733a2f2f706f7365722e707567782e6f72672f707573686170692f636c69656e742d7068702f6c6963656e73652e737667)](https://packagist.org/packages/pushapi/client-php)

Install [![Analytics](https://camo.githubusercontent.com/c8d459738e3f4dc7600528b18a5de5f3941bd0bcf51855de6765f316f48e49c6/68747470733a2f2f67612d626561636f6e2e61707073706f742e636f6d2f55412d35373731383137342d312f707573686170692f636c69656e743f706978656c)](https://github.com/watzenare/PushApi_Client)
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[](#install-)

You can easily install the PushApi\_Client using Composer.

In your composer.json file just add the latest stable version of the Client (see versions on [Packagist](https://packagist.org/packages/pushapi/client-php)):

```
{
    "require": {
        "pushapi/client-php": "2.*"
    }
}

```

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

[](#requirements)

- Have a basic knowledge about what [PushApi](https://github.com/watzenare/PushApi) does and its functionalities
- [PushApi](https://github.com/watzenare/PushApi) running on server
- PHP &gt;= 5.5

Example Usage
-------------

[](#example-usage)

```
require "vendor/autoload.php";

use \RequestManagers\CurlRequestManager;

$requestManager = new CurlRequestManager("http://my_uri.com/", 8080);
$client = new PushApi_Client("my_app_id", "my_app_name", "my_secret", $requestManager);

try {
    $userId = 1;
	$user = $client->getUser($userId);
	echo $user['result']['email'] . "\n";
} catch (Exception $e) {
	echo "Exception - " . $e->getMessage() . "\n";
}
```

Request Managers
----------------

[](#request-managers)

The Request Managers are objects that implement sending functions that lets the Client to send calls and receive responses. Currently there are two Request Managers but only one can be used for this use because the other one is used for tests:

- **Dummy** Request Manager, it is used in order to get the Client calls, check if it is working correctly and it simulates a request response with the client information.
- **Curl** Request Manager, it uses the PHP Curl method in order to generate/receive the calls to/from the PushApi.
- **|NEW|** - **[Guzzle](https://github.com/guzzle/guzzle)** Request Manager, it uses Guzzle functionalities in order to generate/receive the calls to/from the PushApi.

Support
-------

[](#support)

If you want to give your opinion, you can send me an [email](mailto:eloi@tviso.com), comment the project directly (if you want to contribute with information or resources) or fork the project and make a pull request.

Also I will be grateful if you want to make a donation, this project hasn't got a death date and it wants to be improved constantly:

[![Website Button](https://camo.githubusercontent.com/94fb13462dc68c7036a8f6271bb02869d7ade2cc9ca74f5e951af74701898a22/687474703a2f2f7777772e7261686d656e76657273616e642e636f6d2f696d616765732f70617970616c5f6c6f676f5f6b6c65696e2e676966 "Donate!")](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=eloi.ballara%40gmail%2ecom&lc=US&item_name=PushApi%20Developers&no_note=0&currency_code=EUR&bn=PP%2dDonationsBF%3abtn_donateCC_LG%2egif%3aNonHostedGuest&amount=5 "Contribute to the project")

\##License

The PushApi\_Client is released under the MIT public license.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity24

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity65

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 ~53 days

Recently: every ~124 days

Total

13

Last Release

3534d ago

Major Versions

v1.8.2 → v2.02015-12-16

### Community

Maintainers

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

---

Top Contributors

[![watzenare](https://avatars.githubusercontent.com/u/4904152?v=4)](https://github.com/watzenare "watzenare (44 commits)")

---

Tags

phppush-notificationspushapipushapi-clientpushapiphp-pushpushapi-phppushapi-client-php

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/pushapi-client-php/health.svg)

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

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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