PHPackages                             ndps/corephp - 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. ndps/corephp

ActiveLibrary[Payment Processing](/categories/payments)

ndps/corephp
============

NTT DATA Payment Services Core PHP Composer package

08PHP

Since Oct 14Pushed 3y ago1 watchersCompare

[ Source](https://github.com/NDPS-Dev/corephp)[ Packagist](https://packagist.org/packages/ndps/corephp)[ RSS](/packages/ndps-corephp/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

NDPS-Dev/corephp
================

[](#ndps-devcorephp)

Official CorePHP library for NTT DATA Payment Service.

Prerequisites
-------------

[](#prerequisites)

- A minimum of PHP 7.3 upto 8.1

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

[](#installation)

- If your project using composer, run the below command

    ```
    composer require ndps/corephp:dev-main
    ```
- If you are not using composer, download the latest release from the releases section. You should download the corephp.zip file from atomlite/corephp. And place in vendor folder.

How To Use It
-------------

[](#how-to-use-it)

- To handle the request use below code which will provide the request URL.

    ```
        include_once 'vendor/autoload.php';
        $transactionRequest = new \NDPS\TransactionRequest();

        /* Add your return URL */
        $ru = "http://localhost:8081/Package/CorePhp/response.php";

        /*
        *Setting all values here
        */
        $transactionRequest->setLogin('192');
        $transactionRequest->setPassword("Test@123");
        $transactionRequest->setProductId("NSE");
        $transactionRequest->setAmount('50.55');
        $transactionRequest->setTransactionCurrency("INR");
        $transactionRequest->setTransactionAmount('50.55');
        $transactionRequest->setReturnUrl($ru);
        $transactionRequest->setClientCode('NAVIN');
        $transactionRequest->setTransactionId('0010');
        $transactionRequest->setCustomerName("Test Name");
        $transactionRequest->setCustomerEmailId("test@test.com");
        $transactionRequest->setCustomerMobile("9999999999");
        $transactionRequest->setCustomerBillingAddress("Mumbai");
        $transactionRequest->setCustomerAccount("639827");
        $transactionRequest->setReqHashKey("KEY123657234");
        $transactionRequest->seturl("https://paynetzuat.atomtech.in/paynetz/epi/fts");
        $transactionRequest->setRequestEncypritonKey("8E41C78439831010F81F61C344B7BFC7");
        $transactionRequest->setSalt("8E41C78439831010F81F61C344B7BFC7");

        $url = $transactionRequest->getPGUrl();
        header("Location: $url");
    ```
- To handle the response use below function which will return the final response array.

    ```
        include_once 'vendor/autoload.php';
        $transactionResponse = new \NDPS\TransactionResponse();

        $transactionResponse->setRespHashKey("1243KEYRESP123657234");
        $transactionResponse->setResponseEncypritonKey("8E41C78439831010F81F61C344B7BFC7");
        $transactionResponse->setSalt("8E41C78439831010F81F61C344B7BFC7");
        $arrayofdata = $transactionResponse->decryptResponseIntoArray($_POST['encdata']);

        /*
        *Signature Verification for response and reponse verification
        */
        $verification = $transactionResponse->validateResponse($arrayofdata, "KEYRESP123657234");
        if($verification){
          // final logic
            if($arrayofdata["f_code"] == "Ok"){
                echo "Transaction successful!";
            }
            elseif($arrayofdata["f_code"] == "C"){
                echo "Transaction Cancelled!";
            }
            else{
                echo "Transaction Failed!";
            }
        }
        else{
          echo "Transaction Failed!";
        }

         echo "Response Array:";
         print_r($arrayofdata);
    ```

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity24

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/acab02896cfe5e4ea506d36e73d58706c970cb39c80bcf70ff14c475c8943a96?d=identicon)[atomlite](/maintainers/atomlite)

---

Top Contributors

[![NDPS-Dev](https://avatars.githubusercontent.com/u/6460167?v=4)](https://github.com/NDPS-Dev "NDPS-Dev (12 commits)")

### Embed Badge

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

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

###  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)
