PHPackages                             maher1337/vopay-php-sdk - 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. [Payment Processing](/categories/payments)
4. /
5. maher1337/vopay-php-sdk

ActiveProject[Payment Processing](/categories/payments)

maher1337/vopay-php-sdk
=======================

VoPay PHP SDK

1.0.3(3y ago)05MITPHPPHP ^7.4 | ^8.0

Since Nov 14Pushed 3y agoCompare

[ Source](https://github.com/maher1337/vopay-php-sdk)[ Packagist](https://packagist.org/packages/maher1337/vopay-php-sdk)[ RSS](/packages/maher1337-vopay-php-sdk/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (3)Versions (5)Used By (0)

Vopay PHP SDK
=============

[](#vopay-php-sdk)

This is an SDK for PHP to interface own platform with VoPay payment gateway. Uses [VoPay API v2](https://docs.vopay.com/v2/vopay-api-reference/ref).

Features
--------

[](#features)

- Follows PSR-0 conventions and coding standards: autoload friendly
- Light and fast thanks to lazy loading of API classes
- Extensively tested
- Usable with Symfony, Laravel and other Web Application Frameworks

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

[](#requirements)

- PHP &gt;= 7.4 with [cURL](http://php.net/manual/en/book.curl.php) extension,
- [Guzzle](https://github.com/guzzle/guzzle) &gt;= 7.0.1 library,
- (optional) [PHPUnit](https://phpunit.de) to run tests.

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

[](#installation)

It is easiest to use [Composer](https://getcomposer.org/) to install, simply run:

```
composer require matteocacciola/vopay-sdk

```

Or add to the `require` section of your `composer.json` file:

```
"matteocacciola/vopay-sdk"

```

Basic usage
-----------

[](#basic-usage)

```
use PaymentProcessor\VoPay\VoPay;

$client = new VoPay('account_id', 'api-key', 'api_secret');
```

The `$client` object gives you access to the entire VoPay API. E.g.: if you want to access the set of endpoints related to [VoPay Account](https://docs.vopay.com/v2/vopay-api-reference/ref#tag-account-endpoints), you just need to code:

```
$account = $client->account();
```

Similarly, for example, with [VoPay EFT Endpoints](https://docs.vopay.com/v2/vopay-api-reference/ref#tag-electronic-funds-transfer-endpoints):

```
$account = $client->electronicFundsTransfer();
```

and so forth.

API Coverage
------------

[](#api-coverage)

Currently, all the APIs are supported by this SDK.

Tests
-----

[](#tests)

The package is provided with mocks for each subset of endpoints: you can easily mimic the successful or failing response by just passing a simple parameter to the mock.

Here is an example.

In a service, for instance, you could have the following method:

```
/**
 * @param string $endpoint
 *
 * @return VoPayContract
 * @throws \Exception
 */
protected function buildVopayEndpointGroup(string $endpoint) : VoPayContract
{
    return $this->apiVopay->{$endpoint}();
}
```

returning the subset of endpoints, like `account` or `electronicFundsTransfer` etc. Loosely speaking, the `$endpoint` is one of the name of the methods provided by `PaymentProcessor\VoPay\VoPay` client.

Then, here is what you could mock in a test:

```
use Mockery\MockInterface;
use PaymentProcessor\VoPay\Endpoints\Mocks\ElectronicFundsTransfer;

// $shouldTestSucceed is a boolean: true if the mocked response from the VoPay API should succeed, false otherwise
$this->partialMock(SomeClass::class, function (MockInterface $mock) use ($shouldTestSucceed) {
    $mock->shouldReceive('buildVopayEndpointGroup')
        ->with('electronicFundsTransfer')
        ->andReturn(new ElectronicFundsTransfer($shouldTestSucceed));
});
```

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

[](#documentation)

- Official [API documentation](https://docs.vopay.com/v2/vopay-api-reference/ref).

Contributing
------------

[](#contributing)

Pull requests are welcome for improvements to the core library, tests, and documentation.

No Warranty
-----------

[](#no-warranty)

This package is a free distribution, provided at no cost. It does not come with any warranty, expressed or implied. Source code is provided for your convenience. VoPay does not assume any responsibilities for its quality or support.

License
-------

[](#license)

### The MIT License (MIT)

[](#the-mit-license-mit)

Copyright (c) 2016 Phillip Shipley

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 86.7% 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 ~73 days

Total

4

Last Release

1418d ago

PHP version history (2 changes)1.0.0PHP ^7.4

1.0.2PHP ^7.4 | ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/0feb8a11e69fb1136ec527e7773b6d003102f47bbc3850ffbedf0f6474ac4d8b?d=identicon)[maher1337](/maintainers/maher1337)

---

Top Contributors

[![matteocacciola](https://avatars.githubusercontent.com/u/28953594?v=4)](https://github.com/matteocacciola "matteocacciola (13 commits)")[![maher1337](https://avatars.githubusercontent.com/u/28673923?v=4)](https://github.com/maher1337 "maher1337 (2 commits)")

---

Tags

paymentvopay

###  Code Quality

Code StylePHP\_CodeSniffer

### Embed Badge

![Health badge](/badges/maher1337-vopay-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/maher1337-vopay-php-sdk/health.svg)](https://phpackages.com/packages/maher1337-vopay-php-sdk)
```

###  Alternatives

[shetabit/multipay

PHP Payment Gateway Integration Package

291348.2k3](/packages/shetabit-multipay)[bitpay/sdk

Complete version of the PHP library for the new cryptographically secure BitPay API

42337.5k4](/packages/bitpay-sdk)[sebdesign/laravel-viva-payments

A Laravel package for integrating the Viva Payments gateway

4845.9k](/packages/sebdesign-laravel-viva-payments)[flutterwavedev/flutterwave-v3

A simple SDK for integrating to Flutterwave Payment

24174.1k6](/packages/flutterwavedev-flutterwave-v3)[paypayopa/php-sdk

PHP SDK for PayPay Open Payment API

18279.6k3](/packages/paypayopa-php-sdk)[henryejemuta/laravel-monnify

A laravel package to seamlessly integrate monnify api within your laravel application

132.1k](/packages/henryejemuta-laravel-monnify)

PHPackages © 2026

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