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.

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 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

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.php loader 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

License

MIT License. See LICENSE for details.


All versions of bobospay-php with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
guzzlehttp/guzzle Version ^7.10
guzzlehttp/psr7 Version ^2.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 bobospay/bobospay-php contains the following files

Loading the files please wait ...