PHPackages                             tnextpay/tnextpay-plugin-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. tnextpay/tnextpay-plugin-php

ActiveLibrary[Payment Processing](/categories/payments)

tnextpay/tnextpay-plugin-php
============================

TechnoNextPay is a online payment gateway and easy payment solution

1.0.0(3mo ago)03MITPHPPHP ^7.4|^8.0

Since Feb 9Pushed 3mo agoCompare

[ Source](https://github.com/devtnextpay-cmd/TnextPay-PHP-packagist)[ Packagist](https://packagist.org/packages/tnextpay/tnextpay-plugin-php)[ RSS](/packages/tnextpay-tnextpay-plugin-php/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

[![Tnextpay](https://camo.githubusercontent.com/fd371f733e10c86890533feb3ff873f4fd0659e7ac55eef45cdbd537387bebb8/68747470733a2f2f546563686e6f6e6578747061792e636f6d2e62642f6465762f696d616765732f546563686e6f6e6578747061792e706e67)](https://camo.githubusercontent.com/fd371f733e10c86890533feb3ff873f4fd0659e7ac55eef45cdbd537387bebb8/68747470733a2f2f546563686e6f6e6578747061792e636f6d2e62642f6465762f696d616765732f546563686e6f6e6578747061792e706e67) PHP example application using Sp-plugin-php
=========================================================================================================================================================================================================================================================================================================================================================================================================================================================================================================

[](#-php-example-application-using-sp-plugin-php)

#### *-Technonextpay integration example with sp-plugin-php*

[](#-technonextpay-integration-example-with-sp-plugin-php)

*Powered by:* [Technonext Pay Limited](https://Technonextpay.com.bd/)

##### This is an example application made with PHP programing language which is using tnextPay-plugin-php to integrate Technonextpay payment system to the application.

[](#this-is-an-example-application-made-with--php-programing-language-which-is-using-tnextpay-plugin-php-to-integrate-technonextpay-payment-system-to-the-application)

📖 Developer Guide
-----------------

[](#-developer-guide)

For a comprehensive understanding of how the plugin works and how to integrate it into your application, see the **[Developer Guide](DEVELOPER_GUIDE.md)**.

The guide covers:

- Architecture overview and component purposes
- Complete payment flow explanation
- Step-by-step integration instructions
- API reference and examples
- Best practices and troubleshooting

⚡ Quick Start
-------------

[](#-quick-start)

New to the plugin? Get up and running in 5 minutes with the **[Quick Start Guide](QUICK_START.md)**.

Perfect for:

- First-time integration
- Testing the plugin quickly
- Understanding basic payment flow

Security &amp; Best Practices
-----------------------------

[](#security--best-practices)

### ✅ Implemented Improvements (2026)

[](#-implemented-improvements-2026)

- **Input Validation**: All user inputs are now sanitized and validated before processing
- **Proper Error Handling**: Validation methods return appropriate boolean values instead of always true
- **Secure Logging**: Replaced `print_r` with `error_log` for better security
- **Environment Variables**: Credentials loaded from environment variables instead of hardcoded values
- **Unit Tests**: Basic test suite added for validation functions
- **HTTP Security**: Improved cURL configuration with proper SSL verification and timeouts

### ⚠️ Security Notes

[](#️-security-notes)

- Never use `configaration.php` in production - it contains example credentials
- Always load configuration from environment variables using `TechnonextpayEnvReader`
- Ensure SSL verification is enabled in production
- Regularly update dependencies and monitor for security vulnerabilities

How to Run in Windows:
----------------------

[](#how-to-run-in-windows)

Follow below instruction to run "php-app-php-plugin" example application:

- Clone/Download repository to your local directory.
- Place downloaded folder to xampp/htdocs.
- Open XAMPP control Panel and start Apache.
- To run the project type  in any browser.

php-app-php-plugin application will run in Windows.

How to Run in Linux:
--------------------

[](#how-to-run-in-linux)

Follow below instruction to run "php-app-php-plugin" example application:

- Clone/Download repository to your local directory.
- You must have PHP and Apache server in your system.
- Place downloaded folder to var/www/html.
- To run the project type  in any browser.

php-app-php-plugin application will run in Linux.

Testing
-------

[](#testing)

The plugin includes a comprehensive test suite to ensure code quality and reliability.

### Run Tests

[](#run-tests)

```
php tests/run_tests.php
```

See `tests/README.md` for detailed testing information.

References
----------

[](#references)

```
1. [PHP sample project](https://github.com/tnextpay-plugins/tnextpay-plugin-usage-examples/tree/main/php-app-plugin) showing usage of the PHP plugin.
2. [Sample applications and projects](https://github.com/tnextpay-plugins/tnextpay-plugin-usage-examples) in many different languages and frameworks showing Technonextpay integration.
3. [Technonextpay Plugins](https://github.com/tnextpay-plugins) home page on github
```

License
-------

[](#license)

This code is under the [MIT open source License](http://www.opensource.org/licenses/mit-license.php).

#### Please [contact](https://Technonextpay.com.bd/#contacts) with Technonextpay team for more detail.

[](#please-contact-with-technonextpay-team-for-more-detail)

Copyright ©️2026 [TechnonexPay Limited](https://::).

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance82

Actively maintained with recent releases

Popularity3

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity39

Early-stage or recently created project

 Bus Factor1

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

99d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/68b4b2e3af5af96cd7e1083baeeb4fd7d0f8b9bb1c6534f77f03b8d44fc80dfe?d=identicon)[tnextpay](/maintainers/tnextpay)

---

Top Contributors

[![devtnextpay-cmd](https://avatars.githubusercontent.com/u/247132617?v=4)](https://github.com/devtnextpay-cmd "devtnextpay-cmd (3 commits)")[![abefimrs](https://avatars.githubusercontent.com/u/757463?v=4)](https://github.com/abefimrs "abefimrs (1 commits)")

---

Tags

phplaravelcodeigniterpaymentspayment gatewaysymphonytechnonexttechnonext-plugin

### Embed Badge

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

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

###  Alternatives

[kingflamez/laravelrave

A Laravel Package for Flutterwave Rave

151286.1k4](/packages/kingflamez-laravelrave)[tomatophp/filament-payments

Manage your payments inside FilamentPHP app with multi payment gateway integration

542.3k](/packages/tomatophp-filament-payments)

PHPackages © 2026

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