katsana/katsana-sdk-laravel
KATSANA SDK for PHP
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'),
],
];
Related Packages
Powerful PHP database abstraction layer (DBAL) with many features for database s...
Laravel Serializable Closure provides an easy and secure way to serialize closur...
Cli error handling for console/command-line PHP applications.
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| v1.4.0 | ^7.3 || | ^5.8 || | BSD-3-Clause | |
| v1.3.0 | ^7.3 || | ^5.8 || | BSD-3-Clause | |
| v1.2.1 | >=7.1 | ^5.8 || | BSD-3-Clause | |
| v1.2.0 | >=7.1 | ^5.8 || | BSD-3-Clause | |
| v1.1.3 | >=7.1 | ^5.8 | BSD-3-Clause | |
| v1.1.2 | >=7.1 | ^5.8 | BSD-3-Clause | |
| v1.1.1 | >=7.1 | ^5.8 | BSD-3-Clause | |
| v1.1.0 | >=7.1 | ^5.8 | BSD-3-Clause | |
| v1.0.2 | >=7.1 | ^5.5 | BSD-3-Clause | |
| v1.0.1 | >=7.1 | ^5.5 | BSD-3-Clause | |
| v1.0.0 | >=7.1 | ^5.5 | BSD-3-Clause | |
| v0.1.0 | >=5.5 | ^5.1 | BSD-3-Clause |