swervpaydev / laravel
Laravel Client for Swervpay
v0.0.2
2024-02-21 15:50 UTC
Requires
- php: ^8.1.0
- ext-json: *
- laravel/framework: ^9.46.0|^10.34.2|^11.0
- swervpaydev/sdk: dev-main
Requires (Dev)
- laravel/pint: dev-main
- pestphp/pest: 3.x-dev
- pestphp/pest-plugin-arch: 3.x-dev
- phpstan/phpstan: 2.0.x-dev
- symfony/var-dumper: 7.1.x-dev
README
Laravel Client for Swervpay
X (Twitter) · Linkedin · Changelog
Installation
To get the latest version of Swervpaydev, simply require it
$ composer require swervpaydev/laravel
Or add the following line to the require block of your composer.json
file.
"swervpaydev/laravel": "*"
Configuration
You can publish the configuration file using this command:
$ php artisan vendor:publish --tag="swervpay-laravel-config"
A configuration-file named swervpay.php
with some sensible defaults will be placed in your config
directory:
<?php /** * Configuration file for Swervpay. * * This file contains the configuration options for the Swervpay integration. * The 'secret_key' and 'business_id' options are retrieved from the environment variables. */ return [ /** * Configuration option for the secret key used in Swervpay. * The value is retrieved from the environment variable SWERVPAY_SECRET_KEY. * * @var string */ 'secret_key' => env('SWERVPAY_SECRET_KEY'), /** * The business ID for Swervpay. * * This value is retrieved from the environment variable SWERVPAY_BUSINESS_ID. */ 'business_id' => env('SWERVPAY_BUSINESS_ID'), ];