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

ActiveLibrary[API Development](/categories/api)

paysera/notification-php-client
===============================

Notification API PHP client

1.0.1(5y ago)341.3k↓46.4%2[1 issues](https://github.com/evp/NotificationPhpClient/issues)[1 PRs](https://github.com/evp/NotificationPhpClient/pulls)PHP

Since Jul 20Pushed 5y ago1 watchersCompare

[ Source](https://github.com/evp/NotificationPhpClient)[ Packagist](https://packagist.org/packages/paysera/notification-php-client)[ RSS](/packages/paysera-notification-php-client/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (3)Used By (0)

\#NotificationPhpClient

\##What is NotificationPhpClient?

This is a library for [webtopay.com Notification API](https://www.mokejimai.lt/dokumentacija.html). It allows you to easily check sign and parse the callback request from webtopay.com about funds in your account. You have to set-up notifications in "Account settings" page on webtopay.com to get the notifications.

\##Installation

\###Manual

- Use `git clone https://github.com/evp/NotificationPhpClient.git` to copy the NotificationPhpClient directory to your project directory.
- Add the following code to your PHP file where you intend to check notification callbacks:

```
   require_once '/path/to/NotificationPhpClient/src/Evp/Notification/Autoloader.php';
   Evp_Notification_Autoloader::register();
```

This will ensure that all of the library's classes are properly loaded. Make sure you change the 'path/to' to the actual path of the NotificationPhpClient.

\###Composer

- Add `"paysera/notification-php-client": "dev-master"` dependency to composer.json file.
- Execute `composer update paysera/notification-php-client` in your project directory.

\##Using the library

```
$notification = Evp_Notification_Container::create()->getRequestParser()->parseRequest($_POST);
```

`Evp_Notification_Container::create` method is used for fluent interface, you can create container by using `new` keyword.

`Evp_Notification_RequestParser::parseRequest` method returns instance of `Evp_Notification_Entity_OperationNotification`, which provides interface for getting the data from callback. You can use method `Evp_Notification_RequestParser::parseRequestToArray` to get all passed parameters as an array if you prefer.

You can customize the parameters and services by providing optional array parameter when creating `Evp_Notification_Container`.

Each time when callback is parsed and signature is checked, public key is requested from webtopay.com server. To cache public key, provide parameter `cache.filePath` to container. For example:

```
$container = new Evp_Notification_Container(array(
    'cache.filePath' => '/tmp/evp.notifications.public-key.php',
));
```

Be aware that this file *must* be in a safe place that no other script or third party could overwrite it. Otherwise security can be breached by replacing the public key. If there is no cache available, file is not readable or sign is invalid with cached key, public key will be downloaded from webtopay.com and saved to cache.

Notification API requires that response code would be 200 and content would start with "OK". Library does not provide any method to give this kind of response.

If signature check does not pass or some other issue occurs, library throws an exception. You can process those exceptions by catching them:

```
try {
    $notification = Evp_Notification_Container::create()->getRequestParser()->parseRequest($_POST);
    // process $notification somehow
    echo 'OK';
} catch (Evp_Notification_Exception $exception) {
    // log $exception somehow
    // do not respond 'OK' if you want that callback would be repeated after some time
    echo 'Error: ' . $exception;
}
```

\##Running tests

Run `phpunit` in the base directory.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Total

2

Last Release

1959d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/9d385187c2b529d5c1189dfc3763972f76738d24293593ff3db876fff82321db?d=identicon)[paysera.com](/maintainers/paysera.com)

---

Top Contributors

[![gsalnis](https://avatars.githubusercontent.com/u/49526789?v=4)](https://github.com/gsalnis "gsalnis (1 commits)")[![mariusbalcytis](https://avatars.githubusercontent.com/u/1590072?v=4)](https://github.com/mariusbalcytis "mariusbalcytis (1 commits)")[![pelanis](https://avatars.githubusercontent.com/u/31431703?v=4)](https://github.com/pelanis "pelanis (1 commits)")

### Embed Badge

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

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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