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

ActiveLibrary[Payment Processing](/categories/payments)

deepay/deepay-php
=================

DeePay library for PHP

1.0.0(7y ago)07MITPHP

Since Nov 23Pushed 7y ago1 watchersCompare

[ Source](https://github.com/DeePayNet/deepay-php)[ Packagist](https://packagist.org/packages/deepay/deepay-php)[ Docs](https://deepay.net)[ RSS](/packages/deepay-deepay-php/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (2)Used By (0)

DeePay API PHP Library
======================

[](#deepay-api-php-library)

This is a PHP library fo DeePay API. Merchant ID and API key are needed for authenication. [Sign up here](https://deepay.net).

- [DeePay API Document](https://github.com/DeePayNet/deepay-api)
- [中文版](./README-CN.md)

Install
-------

[](#install)

### With composer (Recommended)

[](#with-composer-recommended)

Install the package via [Composer](https://getcomposer.org):

```
composer require deepay/deepay-php
```

### Manual download

[](#manual-download)

Download the [package](https://github.com/DeePayNet/deepay-php/archive/master.zip) and include it in your code.

```
require_once('deepay-php-master/deepay.php');
```

Getting Started
---------------

[](#getting-started)

### Initialize

[](#initialize)

Generate an instance of `DeePay\DeePay`, which will be used to call the API.

```
use DeePay\DeePay;

$deepay = new DeePay('Merchant ID', 'Api Key');
```

### Create Order

[](#create-order)

```
$params = array(
  'out_trade_id' => 'E201809123',
  'price_amount' => 10.0001,
  'price_currency' => 'CNY',
  'notify_url' => 'http://example.com/notify',
  'callback_url' => 'http://example.com/',
  'title' => 'iPhone X',
  'attach' => 'additional info'
);

$order = $deepay->createOrder($params);

// $order is an instance of \DeePay\Order
var_dump($order->toArray());
```

### Checkout Order

[](#checkout-order)

```
$order = $deepay->checkoutOrder(array(
  'transaction_id' => '20181121113652525198',
  // or use out_trade_id
  // 'out_trade_id' => 'E52525198',
  'pay_currency' => 'BTC',
  'email' => 'info@example.com',
));

var_dump($order->toArray());
```

### Query Order

[](#query-order)

```
$order = $deepay->checkoutOrder('20181121113652525198');
// or use out_trade_id
$order = $deepay->checkoutOrder('E113652525198');

var_dump($order->toArray());
```

### Get Exchange Rate

[](#get-exchange-rate)

```
$rate = \DeePay\DeePay::getExchangeRate('ETH', 'CNY');
var_dump($rate);

```

### Payment Notification

[](#payment-notification)

```
$order = $_POST;
if ($deepay->checkSign($order) {
	if ($order['status'] == 'confirmed') {
		// process the order according to status
	}

	// echo 'ok' when you finish the job
	exit('ok');
} else {
	echo 'Notifycation is invalid';
}
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

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

Unknown

Total

1

Last Release

2730d ago

### Community

Maintainers

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

---

Top Contributors

[![cloudsthere](https://avatars.githubusercontent.com/u/16861325?v=4)](https://github.com/cloudsthere "cloudsthere (1 commits)")

---

Tags

paymentgatewaybitcoinmerchantlitecoinethereumaltcoindeepay

### Embed Badge

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

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

###  Alternatives

[ccxt/ccxt

A cryptocurrency trading API with more than 100 exchanges in JavaScript / TypeScript / Python / C# / PHP / Go

41.5k328.9k1](/packages/ccxt-ccxt)[coingate/coingate-php

CoinGate library for PHP

56459.2k1](/packages/coingate-coingate-php)[plisio/plisio-api-php

155.8k](/packages/plisio-plisio-api-php)[omnipay/bitpay

BitPay driver for the Omnipay payment processing library

1383.2k1](/packages/omnipay-bitpay)[coingate/omnipay-coingate

CoinGate driver for the Omnipay payment processing library

1037.0k1](/packages/coingate-omnipay-coingate)

PHPackages © 2026

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