Download the PHP package alexasomba/paystack-php without Composer

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

Paystack

PHP client for the Paystack API, generated from the Paystack OpenAPI spec in this repository.

Why this SDK

Requirements

PHP 8.1 and later.

Installation

Or from source:

Authenticate requests with your Paystack secret key through the generated configuration object:

Quick Start

Generated API methods return typed model objects. Catch ApiException when you need raw status codes, headers, or response bodies while debugging.

API Basics

Authentication & Environments

Reliability

This SDK includes opt-in helpers in Alexasomba\Paystack\Extras:

Use the extras layer when you want one place to set timeout, retry, and idempotency defaults across your application.

Pagination

Coverage

Errors

This SDK is generated from the SDK spec in this monorepo and covers the operations emitted into the generated API classes under lib/Api.

Modules

For this SDK, these schema families are emitted as generated model classes under lib/Model and used by the API classes under lib/Api.

Module Schema / model family
Transactions Transaction*
Verify Payments (Transaction verification) VerifyResponse / TransactionFetchResponse
Charges Charge*
Bulk Charges BulkCharge*
Subaccounts Subaccount*
Transaction Splits Split*
Terminal Terminal*
Virtual Terminal VirtualTerminal*
Customers Customer*
Direct Debit DirectDebit*
Dedicated Virtual Accounts DedicatedNuban* / DedicatedVirtualAccount*
Apple Pay ApplePay*
Plans Plan*
Subscriptions Subscription*
Transfer Recipients TransferRecipient*
Transfers Transfer*
Transfers Control (OTP settings; under Transfers) TransferEnable* / TransferDisable* / TransferFinalize*
Balance Balance*
Payment Requests (Invoices) PaymentRequest*
Verification (Resolve Account / Validate Account / Resolve Card BIN) Verification*
Products Product*
Storefronts Storefront*
Orders Order*
Payment Pages Page*
Settlements Settlement*
Integration Integration*
Control Panel (Payment session timeout; under Integration) ControlPanel*
Refunds Refund*
Disputes Dispute*
Banks Bank*
Miscellaneous Miscellaneous* / Currency

Module Examples

These are intentionally short examples. Use them as entry points, then expand the generated model objects and API method arguments for your use case.

Transactions

Verify Payments (Transaction verification)

Charges

Bulk Charges

Subaccounts

Transaction Splits

Terminal

Virtual Terminal

Customers

Direct Debit

Dedicated Virtual Accounts

Apple Pay

Plans

Subscriptions

Transfer Recipients

Transfers

Transfers Control (OTP settings; under Transfers)

Balance

Payment Requests (Invoices)

Verification (Resolve Account / Validate Account / Resolve Card BIN)

Products

Storefronts

Orders

Payment Pages

Settlements

Integration

Control Panel (Payment session timeout; under Integration)

Refunds

Disputes

Banks

Miscellaneous

Configuration Notes

The generated PHP client still exposes the standard OpenAPI Generator configuration surface. In most integrations, the main requirement is setting the bearer token and optionally swapping in a custom Guzzle client.

Related SDKs

Source


All versions of paystack-php with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
ext-curl Version *
ext-json Version *
ext-mbstring Version *
guzzlehttp/guzzle Version ^7.3
guzzlehttp/psr7 Version ^1.7 || ^2.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 alexasomba/paystack-php contains the following files

Loading the files please wait ...