swervpaydev / sdk
PHP Client for Swervpay
v0.0.2
2024-02-21 13:36 UTC
Requires
- php: ^8.1.0
- ext-json: *
- guzzlehttp/guzzle: ^6.5.7|^7.4.4
README
PHP Client for Swervpay
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.