Download the PHP package cyrus-48/paysasa without Composer

On this page you can find all versions of the php package cyrus-48/paysasa. 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 paysasa

Paysasa

A unified, driver-based payment gateway abstraction for Laravel 11, 12, and 13, purpose-built for the Kenyan market.

Paysasa gives a Laravel application one consistent, hardened API — Payment::driver('mpesa')->amount(2500)->phone('0712345678')->charge() — for M-Pesa, Airtel Money, Stripe, Pesapal, Flutterwave, and PesaLink. Business logic never talks to a provider SDK directly; it talks to Paysasa, and Paysasa orchestrates validation, idempotency, persistence, state transitions, events, and background reconciliation.

This README is the quickstart and overview. The comprehensive architecture specification lives in Documentation/.


Key Highlights


Requirements


Installation

This publishes config/paysasa.php, publishes and runs database migrations, and prompts for provider credentials. See Documentation/01-installation.md for detailed instructions.


Quick Start

Initiating a Payment (e.g. M-Pesa STK Push)

Switching Providers

Swapping gateways requires only changing the driver name:

Digital Wallets (Google Pay & Apple Pay)

Neither Google Pay nor Apple Pay is an independent settlement network. They are client-side tokenization layers over card networks. Frontend SDKs (such as Stripe Elements or the Payment Request Button) exchange device credentials for a payment method token (pm_*), which you process via stripe:


Listening to Lifecycle Events

Because asynchronous payments settle via callbacks or reconciliation jobs, business logic should listen for terminal events:

Anomaly Events

Paysasa also emits events when unexpected conditions occur:


Supported Providers & Maturity

Driver Category Status Capabilities
mpesa Mobile Money Stable STK Push, C2B, B2C, reversals, balance inquiries
stripe Cards Stable PaymentIntents, direct charges, refunds, captures
airtel Mobile Money Beta USSD push, collections, full refunds, payouts
pesapal Cards Beta Hosted checkout, IPN callbacks
flutterwave Cards Beta Standard charges, webhook verification
pesalink Banking Experimental Account transfers, banking rails (bring your own bank)

Artisan Commands

Paysasa provides several Artisan commands for operation, reconciliation, and troubleshooting:

Automatic Scheduling: paysasa:reconcile automatically registers in Laravel's scheduler to run every minute when paysasa.reconcile.schedule_enabled is true.


Testing Your Integration

Use Payment::fake() in your unit and feature tests to simulate payment flows without hitting third-party APIs:

You can also queue specific failure or pending responses:


Documentation Index

# Document Covers
— 00-overview.md High-level system architecture, principles, package structure
1 01-installation.md Installation guide, prerequisites, and service registration
2 02-configuration.md Comprehensive configuration reference, driver options, env variables
3 03-quickstart.md Step-by-step integration guide for STK push, cards, refunds, and payouts
4 04-architecture.md State machine, contracts, transition flow, class diagrams, lifecycles
5 05-database-schema.md Entity relationship diagrams (ERD) and column-level schema definitions
6 06-driver-development-guide.md Guide to authoring custom drivers and banking implementations
7 07-webhook-guide.md Webhook intake, signature verification, deduping, and retry handling
8 08-security.md Security model: HMAC signing, IP allowlisting, PCI DSS scope, secret vault
9 09-testing.md Testing best practices using Payment::fake(), Pest, and HTTP fakes
10 10-performance-and-scalability.md High-throughput queue configuration, connection pooling, and caching
11 11-troubleshooting.md Common errors, Daraja gotchas, and resolution procedures
12 12-upgrade-guide.md Semantic versioning policy and version-to-version migration notes
13 13-contributing.md Contribution guidelines, coding standards, and PR workflows
14 14-roadmap.md Implemented scope and future feature considerations

NOTE : BETA

License

MIT License. See LICENSE for details.


All versions of paysasa with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/bus Version ^12.73|^13.43
illuminate/cache Version ^12.73|^13.43
illuminate/console Version ^12.73|^13.43
illuminate/database Version ^12.73|^13.43
illuminate/events Version ^12.73|^13.43
illuminate/http Version ^12.73|^13.43
illuminate/queue Version ^12.73|^13.43
illuminate/routing Version ^12.73|^13.43
illuminate/support Version ^12.73|^13.43
guzzlehttp/guzzle Version ^7.17|^8.6
ramsey/uuid Version ^4.10
nesbot/carbon Version ^2.73|^3.15.1
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 cyrus-48/paysasa contains the following files

Loading the files please wait ...