Download the PHP package nimbbl/nimbbl-sdk without Composer

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

Nimbbl PHP SDK

PHP Version

Official PHP SDK for integrating with the Nimbbl Payment Gateway API. This SDK provides a simple and intuitive interface to interact with all Nimbbl API endpoints.

Installation

Using Composer (Recommended)

Manual Installation

  1. Download the SDK
  2. Include the autoloader:

Quick Start

Features

[OK] Complete API Coverage

Token Management

The SDK uses two types of tokens:

  1. Merchant Token (from generateToken())

    • Used for: Transaction Enquiry, Refund operations
    • Generated from: access_key and access_secret
  2. Order Token (from order creation response)
    • Used for: All other operations (Orders, Payments, Payment Links, Addresses, Checkout Utilities)
    • Obtained from: Order creation response ($order['token'])

Token Usage Pattern:

Security Features

Logging

Framework Agnostic

Works seamlessly with:

Documentation

Comprehensive Documentation

Complete documentation for all SDK functionalities is available in the docs/ directory:

See Documentation Index for a complete overview.

API Clients

Orders API

Note: Orders API uses Order Token (obtained from order creation response).

Payments API

Note: Payments API uses Order Token (obtained from order creation response).

Pre-Authorization: Capture / Void

Available when the sub-merchant is configured with capture_mode=manual (contact Nimbbl to enable). A pre-authorized checkout yields a transaction in the authorized status; you then either capture the held funds or void the hold. Both use the merchant token and are asynchronous — a pending status is normal; confirm the outcome via the capture_success / void_success webhook or Transaction Enquiry.

Capture is terminal — a transaction can be captured or voided, not both. Never fulfil an order on authorized alone; capture first. See example/capture-void-examples.php.

Payment Links API

Addresses API

Refunds API

Note: Refunds API uses Merchant Token (from generateToken()).

Transactions API (Transaction Enquiry)

Note: Transaction Enquiry uses Merchant Token (from generateToken()).

Checkout Utilities API

Note: Checkout Utilities API uses Order Token (obtained from order creation response).

Payment Callback Handling

Note: Encrypted payloads are not enabled by default. Please reach out to [email protected] if you want this functionality.

Always verify the signature first with SignatureVerifier::verifyCallback() on the raw body. It reads the payload's version field (source of truth) and picks the handling automatically — v4 signed envelope (signed with nimbbl_signature), encrypted v4 (AES-GCM decryption authenticates), or legacy v3 per-field — and unwraps the checkout wrappers (globalHandleCheckoutResponse / globalCloseCheckoutModal) for you.

References:

⚠️ The callback is never the source of truth for the result screen — always confirm via Transaction Enquiry (or the webhook). This matters most for v4, whose callback is minimal.

v4 callback (minimal) — carries only: checkout_status, reason, nimbbl_order_id, nimbbl_transaction_id (may be null), invoice_id, retry, message. There is no transaction/amount/status block — take nimbbl_transaction_id and enquire:

Legacy v3 callback (full payload) — carries the transaction inline; you can read it directly, but still reconcile before fulfilment:

The legacy verifyCallbackSignature(array $payload, $secret) (operates on a pre-parsed array) is retained for backward compatibility, but new integrations should use verifyCallback() on the raw body so v4 signed envelopes are verified correctly.

Encryption/Decryption

For direct encryption/decryption operations, use the Encryption class:

Webhook Handling

Use SignatureVerifier::verifyWebhook() on the raw request body. Like verifyCallback(), it selects v4 signed-envelope vs legacy per-field handling off the version field and returns the parsed payload.

The legacy verifySignature(array $eventData, $secret) is retained for backward compatibility; new integrations should use verifyWebhook() on the raw body.

Error Handling

🧪 Testing

Run Tests

See tests/README.md for the full testing guide (offline vs live, pre-auth capture/void, webhook/callback verification).

Examples

Comprehensive examples are available in the example/ directory:

See example/README.md for more details.

Project Structure

🔄 Migration from v2 to v3

The SDK now exclusively uses v3 API endpoints. All v2 endpoints and backward compatibility have been removed.

Key Changes

  1. API Version: All endpoints now use v3 by default
  2. No Version Parameter: apiVersion parameter removed from all methods
  3. New API Clients: Added Addresses, Payments, Payment Links, Checkout Utilities, Transaction Status
  4. Exception Hierarchy: New exception classes for better error handling
  5. Webhook Handling: New Webhook class and WebhookEvent model

Requirements

🔗 Resources

📄 License

MIT License - see LICENSE file for details.

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Support

For support, email [email protected]


Version: 4.1.0
Last Updated: July 27, 2026


All versions of nimbbl-sdk with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
ext-json Version *
ext-openssl Version *
rmccue/requests Version ^1.8
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 nimbbl/nimbbl-sdk contains the following files

Loading the files please wait ...