PHP Client for Swervpay

v0.0.2 2024-02-21 13:36 UTC

This package is auto-updated.

Last update: 2024-10-19 09:52:07 UTC


README

PHP Client for Swervpay


Explore the docs »

X (Twitter) · Linkedin · Changelog

Installation

PHP 7.2+ and Composer are required.

To get the latest version of Swervpay PHP SDK, simply require it:

$ composer require swervpaydev/sdk

Configuration

Import the Swervpay class and create a new instance with your secret_key and business_id:

use Swervpaydev\SDK\Swervpay;

$config = [
    'secret_key' => '<SECRET_KEY>',
    'business_id' => '<BUSINESS_ID>'
];

$swervpay = new Swervpay($config);

Replace <SECRET_KEY> and <BUSINESS_ID> with your actual secret key and business ID.

Documentation

See docs for PHP here