Download the PHP package bobospay/bobospay-php without Composer
On this page you can find all versions of the php package bobospay/bobospay-php. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download bobospay/bobospay-php
More information about bobospay/bobospay-php
Files in bobospay/bobospay-php
Package bobospay-php
Short Description Php sdk of Bobospay - Online payment solution by credit card and mobile money
License MIT
Homepage https://bobospay.com/
Informations about the package bobospay-php
Bobospay PHP SDK
Official PHP SDK for the Bobospay Merchant API v2. Provides a clean, typed interface for managing transactions, customers, currencies, and account data. Framework-agnostic with first-class Laravel support.
Sign up for a Bobospay merchant account at https://bobospay.com.
Requirements
- PHP 8.1 or later
jsonextensionopensslextension
Installation
Without Composer
If you cannot use Composer, download or clone the repository and use the
provided autoload.php file. The SDK still requires Guzzle 7 as an HTTP
client, so you need to load it first.
The
autoload.phploader skips framework-specific classes (Bobospay\Integrations\Laravel\*) since they require Laravel packages that would not be available in a plain PHP setup.
Quick start
Environment detection
The SDK automatically determines the API endpoint from the client_id prefix.
| Prefix | Environment | Base URL |
|---|---|---|
ci_test_* |
Sandbox | https://sandbox.bobospay.com/api |
ci_live_* |
Production | https://bobospay.com/api |
Configuration options
The constructor accepts an optional third argument for HTTP settings:
Usage
Account
Transactions
Customers
Currencies
Webhook verification
Bobospay signs webhook payloads with an HMAC-SHA256 signature using your client_secret. The SDK provides a helper to verify incoming webhooks:
Error handling
The SDK throws typed exceptions so you can handle each error case individually:
All exceptions extend Bobospay\Exceptions\BobospayException, so you can also catch that as a catch-all.
Laravel integration
The SDK ships with a Laravel service provider that auto-registers via package discovery.
1. Publish the configuration
2. Set your environment variables
3. Use via dependency injection
4. Or use the Facade
Testing
The SDK provides an HttpClientInterface that you can swap out in tests:
Running the SDK test suite
Security
- Never expose your
client_secretin client-side code. It is used directly as the Bearer token. - Always validate webhook signatures before processing payloads.
- Use environment variables to store credentials.
License
MIT License. See LICENSE for details.