PHPackages                             vimeo/payment-gateway-logger - 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. [Logging &amp; Monitoring](/categories/logging)
4. /
5. vimeo/payment-gateway-logger

ActiveLibrary[Logging &amp; Monitoring](/categories/logging)

vimeo/payment-gateway-logger
============================

Logging capabilities for Omnipay gateways

v1.1.1(1y ago)3143.4k↑1204.3%3MITPHP

Since Apr 16Pushed 1y ago14 watchersCompare

[ Source](https://github.com/vimeo/payment-gateway-logger)[ Packagist](https://packagist.org/packages/vimeo/payment-gateway-logger)[ RSS](/packages/vimeo-payment-gateway-logger/feed)WikiDiscussions master Synced today

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

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

[](#installation)

Package is installed via [Composer](http://getcomposer.org/). To install, simply add it to your `composer.json` file:

```
{
    "require": {
        "vimeo/payment-gateway-logger": "^1.0"
    }
}
```

And run composer to update your dependencies:

```
$ curl -s http://getcomposer.org/installer | php
$ php composer.phar update

```

Usage
-----

[](#usage)

Logging capabilities for Omnipay gateways via an `EventSubscriberInterface` subscriber for Omnipay payment gateway-specific events. These events are dispatched via the HTTP client's `EventDispatcherInterface`.

- The omnipay gateway needs to be updated to emit any of the `RequestEvent`, `ResponseEvent` or `ErrorEvent` objects. For example in the gateway's `sendData()` methods we can do:

    ```
    $event_dispatcher = $this->httpClient->getEventDispatcher();
    $event_dispatcher->dispatch(Constants::OMNIPAY_REQUEST_BEFORE_SEND, new RequestEvent($request));
    ```

    Logging Errors and Responses events can be emitted like so

    ```
    $event_dispatcher->dispatch(Constants::OMNIPAY_REQUEST_ERROR new ErrorEvent($exception, $request));
    $event_dispatcher->dispatch(Constants::OMNIPAY_RESPONSE_SUCCESS, new ResponseEvent($response));
    ```

`OmnipayGatewayRequestSubscriber.php` takes in a logger of type `LoggerInterface` which will listen to and log these events.

The subscriber can be set up to listen to these events when instantiating the HTTP client for the gateway like so:

```
$httpClient = new GuzzleClient();
$gateway = Omnipay::create('Vindicia', $httpClient);
$eventDispatcher = $httpClient->getEventDispatcher();
$eventDispatcher->addSubscriber(new OmnipayGatewayRequestSubscriber($gateway_name, new LoggerClassThatImplementsPSRInterface()));
```

###  Health Score

41

↑

FairBetter than 89% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity32

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity67

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

Recently: every ~465 days

Total

7

Last Release

653d ago

### Community

Maintainers

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

![](https://www.gravatar.com/avatar/32d164b00c6f11af3b68da1732bbced103d57fef296a96629c34909ce2443b16?d=identicon)[JCManzo](/maintainers/JCManzo)

---

Top Contributors

[![jcmanzo](https://avatars.githubusercontent.com/u/3589097?v=4)](https://github.com/jcmanzo "jcmanzo (4 commits)")[![muglug](https://avatars.githubusercontent.com/u/2292638?v=4)](https://github.com/muglug "muglug (3 commits)")[![MelechMizrachi](https://avatars.githubusercontent.com/u/1179171?v=4)](https://github.com/MelechMizrachi "MelechMizrachi (2 commits)")

### Embed Badge

![Health badge](/badges/vimeo-payment-gateway-logger/health.svg)

```
[![Health](https://phpackages.com/badges/vimeo-payment-gateway-logger/health.svg)](https://phpackages.com/packages/vimeo-payment-gateway-logger)
```

###  Alternatives

[mindscape/raygun4php

Raygun.com client for sending errors and exceptions automatically.

371.5M14](/packages/mindscape-raygun4php)[authbucket/oauth2-php

The standard compliant OAuth2.0 library based on the Symfony Components

82104.9k4](/packages/authbucket-oauth2-php)[bref/logger

All you need to log with Bref on AWS Lambda

341.4M5](/packages/bref-logger)[anik/loguzz

Loguzz is a guzzlehttp/guzzle request &amp; response logger

16206.6k4](/packages/anik-loguzz)[oanhnn/laravel-logzio

Integrate Logz.io into PHP and Laravel 5.6+ Application

1062.0k](/packages/oanhnn-laravel-logzio)

PHPackages © 2026

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