Download the PHP package paynexus/laravel-paynexus without Composer

On this page you can find all versions of the php package paynexus/laravel-paynexus. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-paynexus

# PayNexus Laravel Plugin [![Latest Version](https://img.shields.io/packagist/v/paynexus/laravel-paynexus?style=flat-square)](https://packagist.org/packages/paynexus/laravel-paynexus) [![License](https://img.shields.io/packagist/l/paynexus/laravel-paynexus?style=flat-square)](https://github.com/MCBANKSKE/paynexus-laravel-plugin/blob/main/LICENSE) [![Laravel](https://img.shields.io/badge/Laravel-8%2B-FF2D20?style=flat-square&logo=laravel)](https://laravel.com) [![PHP](https://img.shields.io/badge/PHP-8.0%2B-777BB4?style=flat-square&logo=php)](https://php.net) **Accept M-Pesa payments through PayNexus in any Laravel application** A powerful client SDK that connects your Laravel application to the PayNexus payment platform, handling M-Pesa STK Push, real-time payment status tracking, webhook processing, and automatic local record-keeping. [Getting Started](GETTING_STARTED.md) • [Examples](EXAMPLES.md) • [API Reference](#api-reference)

⚡ Quick Start

⚠️ Important: The official PayNexus documentation at paynexus.co.ke/docs/laravel contains outdated information. Always refer to this README for accurate installation instructions. The correct package name is paynexus/laravel-paynexus (not paynexus/laravel), and the base URL should be https://paynexus.co.ke without /api suffix.

See GETTING_STARTED.md for the complete 5-minute tutorial.


✨ Features


📚 Documentation

Document Description
GETTING_STARTED.md 5-minute quick start guide
EXAMPLES.md Real-world integration examples
API Reference Complete API documentation

🎯 Common Use Cases

Ecommerce Store

Subscriptions

Invoices


🔔 Webhook Events

Listen for these events in your EventServiceProvider:

Webhook URL: https://yourapp.com/paynexus/webhook


📦 Local Payment Records

Every payment creates a paynexus_payments record:


🔑 API Reference

Payments

Invoices

Receipts

Checkout Sessions

Merchant

Webhooks

Phone Validation


⚙️ Configuration

Option Env Variable Default Description
secret_key PAYNEXUS_SECRET_KEY Your secret API key (required)
public_key PAYNEXUS_PUBLIC_KEY Your public API key (optional)
base_url PAYNEXUS_BASE_URL https://paynexus.co.ke PayNexus API URL
currency PAYNEXUS_CURRENCY KES Default currency
webhook.secret PAYNEXUS_WEBHOOK_SECRET Webhook signature secret
webhook.path PAYNEXUS_WEBHOOK_PATH /paynexus/webhook Webhook route path

See config/paynexus.php for all options.


🧪 Testing


🚨 Error Handling


📋 Requirements


💬 Support


📄 License

MIT — see LICENSE.


**Built with ❤️ for the Laravel community** [PayNexus](https://paynexus.co.ke) • [GitHub](https://github.com/MCBANKSKE/paynexus-laravel-plugin)

All versions of laravel-paynexus with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/support Version ^11.0|^12.0
illuminate/http Version ^11.0|^12.0
illuminate/database Version ^11.0|^12.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package paynexus/laravel-paynexus contains the following files

Loading the files please wait ...