PHPackages                             digitnine/digitnine - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. digitnine/digitnine

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

digitnine/digitnine
===================

Digit9 PHP Client Library

05PHP

Since May 27Pushed 3y ago1 watchersCompare

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

READMEChangelogDependenciesVersions (2)Used By (0)

digitnine-php
=============

[](#digitnine-php)

[![Build Status](https://camo.githubusercontent.com/6178a6b91ecf6d9703875167c8c9357dd59fd2729296e8d00357ac20981333f5/68747470733a2f2f7472617669732d63692e6f72672f64696769746e696e652f64696769746e696e652d7068702e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/digitnine/digitnine-php) [![Stable](https://camo.githubusercontent.com/c5c5d1236af9f87808a2a89a39aadace62c89b92b4d6624a9ee7a0bbc197f2f1/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f737461626c652d76322e382e302d626c75652e737667)](https://packagist.org/packages/digitnine/digitnine#2.8.0) [![License](https://camo.githubusercontent.com/ff2ab5be5712d37aa755ecfeaf7c0bc994d1d0e5eb1a1dccafd55d39dde86ac2/68747470733a2f2f706f7365722e707567782e6f72672f64696769746e696e652f64696769746e696e652f6c6963656e73652e737667)](https://packagist.org/packages/digitnine/digitnine)

Official PHP library for [Digitnine API](https://docs.digitnine.com/docs/payments).

Read up here for getting started and understanding the payment flow with Digitnine:

### Prerequisites

[](#prerequisites)

- A minimum of PHP 7.3 upto 8.1

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

[](#installation)

- If your project using composer, run the below command

```
composer require digitnine/digitnine:2.*

```

- If you are not using composer, download the latest release from [the releases section](https://github.com/digitnine/digitnine-php/releases). **You should download the `digitnine-php.zip` file**. After that, include `Digitnine.php` in your application and you can use the API as usual.

\##Note: This PHP library follows the following practices:

- Namespaced under `Digitnine\Api`
- API throws exceptions instead of returning errors
- Options are passed as an array instead of multiple arguments wherever possible
- All requests and responses are communicated over JSON

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

[](#documentation)

Documentation of Digitnine's API and their usage is available at

Basic Usage
-----------

[](#basic-usage)

Instantiate the digitnine php instance with `key_id` &amp; `key_secret`. You can obtain the keys from the dashboard app ()

```
use Digitnine\Api\Api;

$api = new Api($api_key, $api_secret);
```

The resources can be accessed via the `$api` object. All the methods invocations follows the following pattern

```
    // $api->class->function() to access the API
    //Example
    $api->payment->fetch($paymentId);
```

Supported Resources
-------------------

[](#supported-resources)

- [Customer](documents/customer.md)
- [Token](documents/token.md)
- [Order](documents/order.md)
- [Payments](documents/payment.md)
- [Settlements](documents/settlement.md)
- [Refunds](documents/refund.md)
- [Invoice](documents/invoice.md)
- [Plan](documents/plan.md)
- [Item](documents/item.md)
- [Subscriptions](documents/subscription.md)
- [Add-on](documents/addon.md)
- [Payment Links](documents/paymentLink.md)
- [Smart Collect](documents/virtualaccount.md)
- [Transfer](documents/transfer.md)
- [QR Code](documents/qrcode.md)
- [Emandate](documents/emandate.md)
- [Cards](documents/card.md)
- [Paper NACH](documents/papernach.md)
- [UPI](documents/upi.md)
- [Register Emandate and Charge First Payment Together](documents/registeremandate.md)
- [Register NACH and Charge First Payment Together](documents/registernach.md)
- [Payment Verification](documents/paymentVerfication.md)

Development
-----------

[](#development)

See the [doc.md](doc.md) file for getting started with development.

Release
-------

[](#release)

Steps to follow for a release:

1. Merge the branch with the new code to master.
2. Bump the Version in `src/Api.php`.
3. Rename Unreleased to the new tag in `CHANGELOG.md`
4. Add a new empty "Unreleased" section at the top of `CHANGELOG.md`
5. Fix links at bottom in `CHANGELOG.md`
6. Commit
7. Tag the release and push to GitHub
8. A release should automatically be created once the travis build passes. Edit the release to add some description.

License
-------

[](#license)

The Digitnine PHP SDK is released under the MIT License. See [LICENSE](LICENSE) file for more details.

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity28

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/037be73e26275441ea3177a7c452947ec08aa658f01ad28e93f919732eff90da?d=identicon)[digitnine](/maintainers/digitnine)

---

Top Contributors

[![sreekuttan-pdd](https://avatars.githubusercontent.com/u/84704228?v=4)](https://github.com/sreekuttan-pdd "sreekuttan-pdd (5 commits)")

### Embed Badge

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

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

###  Alternatives

[ergebnis/clock

Provides abstractions of a clock.

301.2M](/packages/ergebnis-clock)[bandwidth-throttle/bandwidth-throttle

Bandwidth throttle at application layer

87139.3k](/packages/bandwidth-throttle-bandwidth-throttle)[serendipity_hq/bundle-features

Manage features and plans in your Symfony app.

1184.3k](/packages/serendipity-hq-bundle-features)

PHPackages © 2026

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