Package Data | |
---|---|
Maintainer Username: | crynobone |
Maintainer Contact: | developer@katsana.com (KATSANA Developer) |
Package Create Date: | 2017-01-10 |
Package Last Update: | 2024-04-02 |
Language: | PHP |
License: | BSD-3-Clause |
Last Refreshed: | 2024-10-26 15:04:33 |
Package Statistics | |
---|---|
Total Downloads: | 12,720 |
Monthly Downloads: | 3 |
Daily Downloads: | 0 |
Total Stars: | 1 |
Total Watchers: | 5 |
Total Forks: | 3 |
Total Open Issues: | 1 |
To install through composer, simply put the following in your composer.json
file:
{
"require": {
"katsana/katsana-sdk-laravel": "^1.0"
}
}
And then run composer install
from the terminal.
Above installation can also be simplify by using the following command:
composer require "katsana/katsana-sdk-laravel=^1.0"
Next add the service provider in config/app.php
.
'providers' => [
// ...
Katsana\ServiceProvider::class,
],
You might want to add Katsana\Katsana
to class aliases in config/app.php
:
'aliases' => [
// ...
'Katsana' => Katsana\Katsana::class,
],
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'),
],
];
Next add the configuration in config/services.php
.
<?php
return [
// ...
'katsana' => [
'access_token' => env('KATSANA_ACCESS_TOKEN'),
'environment' => env('KATSANA_ENVIRONMENT', 'production'),
],
];