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

ActiveLibrary[Payment Processing](/categories/payments)

yenepay/php-client-sdk
======================

YenePay Client SDK for PHP

17PHP

Since Jul 25Pushed 3y ago4 watchersCompare

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

READMEChangelogDependenciesVersions (1)Used By (0)

yenepay.sdk.php.client
======================

[](#yenepaysdkphpclient)

YenePay Client PHP SDK for merchants to send money automatically from their balance.

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

[](#installation)

Step 1: Include yenepay/php-client-sdk in your composer.json file

```
{
  "require": {
    	"yenepay/php-client-sdk": "dev-master"
    }
}

```

Step 2: Run `composer install --no-dev` to download and install the latest version of yenepay/php-client-sdk. This will download and put the library inside the vendor folder.

Step 3: Open your payment processor PHP class and import the SDK's helper class and namespaces.

```
require_once (__DIR__ . '/../library/YenePayClient.php');
    require_once (__DIR__ . '/../library/Models/MoneyRecipient.php');
    require_once (__DIR__ . '/../library/Config/YenePaySettings.php');

```

Note: depending on your directory structure, the path to the library directory may be slightly different.

Pre-requisite
-------------

[](#pre-requisite)

### Creating client token and signing key

[](#creating-client-token-and-signing-key)

If you don't have it already to create access token and signing key for your client app go to your yenepay account setting page

Then create a new client by going to merchants apps menu. After you create a new client copy and save both the access token and the generated private key for that client.

NOTE: Be careful where you put your token and key since it is a highly sensitive information.

### Sending money

[](#sending-money)

To send money you can use the following php code

```
    //Get your access token from the enviroment
    $token = $_ENV['YenePayToken'];
    //Get your merchant code from the enviroment
    $merchantCode = $_ENV['YenePayMerchantCode'];
    //Get your request signing key from the enviroment
    $signingKey = $_ENV['YenePaySigningKey'];

    //Create new setting object
    $settings = new YenePaySettings($merchantCode, $token, $signingKey);

    //Create recipients array with customerCode, amount
    $recipients = array(
        new MoneyRecipient('9358', 8)
    );

    //Create YenePay client with the setting
    $client = new YenePayClient($settings);

    //Create a signed request with message to recipients
    $request = $client->createSignedRequest('Your bonus money', $recipients);

    //Send the money
    $response = $client->sendMoney($request);

    //Check if payment completed
    if($response->getIsPaymentCompleted()){
        //The payment is completed
    }
```

The response object is an instance of a class [SendMoneyResponse.php](https://github.com/YenePay/yenepay.sdk.php.client/tree/master/src/library/Models/SendMoneyResponse.php)

### Example

[](#example)

You can find a working example in the example directory in this repository. Please look at [send\_money.php](https://github.com/YenePay/yenepay.sdk.php.client/tree/master/src/example/send_money.php) to see how to send the request. The [send.php](https://github.com/YenePay/yenepay.sdk.php.client/tree/master/src/example/send.php) will show the parsed request and response in detail for debugging.

[![YenePay Send Money Client](https://github.com/YenePay/yenepay.sdk.php.client/raw/master/example.png)](https://github.com/YenePay/yenepay.sdk.php.client/raw/master/example.png)

### More

[](#more)

For more information please visit

-
-
-

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity25

Early-stage or recently created project

 Bus Factor1

Top contributor holds 77.8% 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.

### Community

Maintainers

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

---

Top Contributors

[![SisayKelkle](https://avatars.githubusercontent.com/u/15005611?v=4)](https://github.com/SisayKelkle "SisayKelkle (7 commits)")[![tinspu](https://avatars.githubusercontent.com/u/5538327?v=4)](https://github.com/tinspu "tinspu (2 commits)")

### Embed Badge

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

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

###  Alternatives

[omnipay/paypal

PayPal gateway for Omnipay payment processing library

3156.8M53](/packages/omnipay-paypal)[eduardokum/laravel-boleto

Biblioteca com boletos para o laravel

626351.9k2](/packages/eduardokum-laravel-boleto)[tbbc/money-bundle

This is a Symfony bundle that integrates moneyphp/money library (Fowler pattern): https://github.com/moneyphp/money.

1961.9M](/packages/tbbc-money-bundle)[2checkout/2checkout-php

2Checkout PHP Library

83740.3k2](/packages/2checkout-2checkout-php)[smhg/sepa-qr-data

Generate QR code data for SEPA payments

61717.2k5](/packages/smhg-sepa-qr-data)[omnipay/dummy

Dummy driver for the Omnipay payment processing library

271.2M33](/packages/omnipay-dummy)

PHPackages © 2026

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