Skip to content

Swerv-Ltd/swervpay-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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