2017 © Pedro Peláez
 

library kollus-sdk

Kollus SDK for PHP

image

kollus/kollus-sdk

Kollus SDK for PHP

  • Thursday, July 20, 2017
  • by yupmin-ct
  • Repository
  • 1 Watchers
  • 0 Stars
  • 271 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 8 Versions
  • 8 % Grown

The README.md

Kollus SDK for PHP

Build Status Coverage Status, (*1)

Introduction

Unofficial Kollus SDK Library for PHP, (*2)

Table of contents:

Requirement

  • PHP 5.5 above
  • PHP Module : curl
  • Composer

Installation

To use this library install it through Composer, run, (*3)

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, (*4)

    'providers' => [

        /*
         * Package Service Providers...
         */
        Kollus\Component\KollusServiceProvider::class,
    ]

publish the config:, (*5)

php artisan vendor:publish

fix config's values in the config config/kollus.php:, (*6)

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, (*7)

License

See LICENSE for more information, (*8)

The Versions