kollus / kollus-sdk
Kollus SDK for PHP
Installs: 1 793
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: >=5.5
- fabpot/goutte: ^3.2
- firebase/php-jwt: ^4.0
- guzzlehttp/guzzle: ^6.2
- symfony/http-foundation: ^3.2
Requires (Dev)
- mikey179/vfsstream: ^1.6
- phpunit/phpunit: ^4.8
- satooshi/php-coveralls: @dev
- squizlabs/php_codesniffer: ^2.7
- symfony/yaml: ^3.2
README
Introduction
Unofficial Kollus SDK Library for PHP
Table of contents:
Requirement
- PHP 5.5 above
- PHP Module : curl
- Composer
Installation
To use this library install it through Composer, run
php composer.phar require kollus/kollus-sdk
How to use
<?php require('./vendor/autoload.php'); use Kollus\Component\KollusClient; // Init library $apiClient = KollusClient::getApiClientBy('kr.kollus.com', 0, 'korean', 'service_account_key', 'api_access_token'); // Get library media content list $mediaContents = $apiClient->getLibraryMediaContents(); foreach ($mediaContents as $mediaContent) { echo $mediaContent->getUploadFileKey() . PHP_EOL; } ...
For laravel
Add the service provider to config/app.php
'providers' => [ /* * Package Service Providers... */ Kollus\Component\KollusServiceProvider::class, ]
publish the config:
php artisan vendor:publish
fix config's values in the config config/kollus.php
:
return [ 'service_account' => [ 'key' => '[fill it]', 'id' =>'[fill it]', 'api_access_token' =>'[fill it]', 'custom_key' => '[fill it]', ], 'domain' => 'kr.kollus.com', 'api_version' => '0', 'language' => 'korean', 'use_https' => 0, ];
More information
Please see Wiki
License
See LICENSE
for more information