katsana / katsana-sdk-laravel
KATSANA SDK for Laravel
Installs: 12 724
Dependents: 1
Suggesters: 0
Security: 0
Stars: 1
Watchers: 5
Forks: 3
Open Issues: 1
Requires
- php: ^7.3 || ^8.0
- illuminate/support: ^5.8 || ^6.0 || ^7.0 || ^8.0 || ^9.0
- katsana/katsana-sdk-php: dev-master
- php-http/guzzle7-adapter: 1.x-dev
Requires (Dev)
- mockery/mockery: ^1.5
- orchestra/testbench: ^3.8.5 || ^4.5 || ^5.0 || ^6.0
README
Installation
To install through composer, simply put the following in your composer.json
file:
{ "require": { "katsana/katsana-sdk-laravel": "^1.1" } }
And then run composer install
from the terminal.
Quick Installation
Above installation can also be simplify by using the following command:
composer require "katsana/katsana-sdk-laravel=^1.1"
Configuration
Next add the service provider in config/app.php
.
'providers' => [ // ... Katsana\ServiceProvider::class, ],
Aliases
You might want to add Katsana\Katsana
to class aliases in config/app.php
:
'aliases' => [ // ... 'Katsana' => Katsana\Katsana::class, ],
Configuration
Using Client ID & Secret
Next add the configuration in config/services.php
.
<?php return [ // ... 'katsana' => [ 'client_id' => env('KATSANA_CLIENT_ID'), 'client_secret' => env('KATSANA_CLIENT_SECRET'), 'environment' => env('KATSANA_ENVIRONMENT', 'production'), //Optional 'endpoints'=>[ 'api' => 'http://katsana-api-endpoint', 'oauth' => 'http://katsana-outh-endpoint', ], ], ];
Using Personal Access Token
Next add the configuration in config/services.php
.
<?php return [ // ... 'katsana' => [ 'access_token' => env('KATSANA_ACCESS_TOKEN'), 'environment' => env('KATSANA_ENVIRONMENT', 'production'), ], ];