2017 © Pedro Peláez
 

library client

Rokka.io client library

image

rokka/client

Rokka.io client library

  • Monday, July 9, 2018
  • by ChristianRiesen
  • Repository
  • 4 Watchers
  • 4 Stars
  • 23,932 Installations
  • PHP
  • 4 Dependents
  • 0 Suggesters
  • 2 Forks
  • 3 Open issues
  • 48 Versions
  • 8 % Grown

The README.md

Rokka PHP Client

Build Status Static analysis Latest Stable Version, (*1)

A PHP library to access the API of the Rokka image service., (*2)

If you are using the Symfony framework, have a look at the Rokka Symfony Bundle which integrates this library into Symfony., (*3)

About

rokka is digital image processing done right. Store, render and deliver images. Easy and blazingly fast. This library allows to upload and manage your image files to rokka and deliver them in the right format, as light and as fast as possible. And you only pay what you use, no upfront and fixed costs., (*4)

Free account plans are available. Just install the plugin, register and use it., (*5)

Installation

Require the library using composer:, (*6)

composer require rokka/client, (*7)

Bootstrapping

You will need to register for a Rokka.io account and use the API key you receive. The recommended way to do so is by using the rokka-cli., (*8)

The Rokka\Client\Factory is the entry point for creating the API client., (*9)

You then need to set the credentials you created with the cli command., (*10)

User Client

The user client is used for user and organization management., (*11)

use Rokka\Client\Factory;

$apiKey = 'myKey';

$userClient = Factory::getUserClient($organization = null, $apiKey =null, $options = []);
$userClient->setCredentials($apiKey);

There is an optional parameter to specify the base URL of the Rokka API. This usually does not need to be adjusted., (*12)

Image Client

The image client is used to upload images into an organization and manage rendering stacks., (*13)

use Rokka\Client\Factory;

$organization = 'testorganization';
$apiKey = 'myKey';

$imageClient = Factory::getImageClient($organization, $apiKey);

There is an optional parameter to specify the base URL of the Rokka API. This usually does not need to be adjusted., (*14)

Options for clients

You can add an options array as last parameter to Factory::getUserClientorFactory::getImageClient`. It takes the following format:, (*15)

[ 
   Factory::API_BASE_URL => 'https://some-other-api.rokka.io',
   Factory::RENDER_BASE_URL => 'https://myimages.example.com', // you you want/have another render base url
   Factory::PROXY => 'http://proxy:8888', // if you need to use a proxy
   Factory::GUZZLE_OPTIONS => ['verify' => false] // any guzzle option you need/want
]

Usage

Read the Getting Started guide of the rokka.io documentation to learn about the basic concepts of rokka., (*16)

The image and user clients provide the operations described in the API Reference section of the rokka documentation., (*17)

See als the API Docs for further information., (*18)

Running tests

Run vendor/bin/phpunit in the project root., (*19)

Running PHP-CS-Fixer

composer run lint:fix

Running phpstan

composer run phpstan

The Versions

09/07 2018

dev-async

dev-async https://github.com/rokka-io/rokka-client-php

Rokka.io client library

  Sources   Download

MIT

The Requires

 

The Development Requires

image images rokka rokka.io imagemanipulation

09/07 2018

dev-master

9999999-dev https://github.com/rokka-io/rokka-client-php

Rokka.io client library

  Sources   Download

MIT

The Requires

 

The Development Requires

image images rokka rokka.io imagemanipulation

09/07 2018

dev-updates-for-new-phpstan

dev-updates-for-new-phpstan https://github.com/rokka-io/rokka-client-php

Rokka.io client library

  Sources   Download

MIT

The Requires

 

The Development Requires

image images rokka rokka.io imagemanipulation

21/06 2018

dev-upload-by-url

dev-upload-by-url https://github.com/rokka-io/rokka-client-php

Rokka.io client library

  Sources   Download

MIT

The Requires

 

The Development Requires

image images rokka rokka.io imagemanipulation

16/05 2018

1.3.2

1.3.2.0 https://github.com/rokka-io/rokka-client-php

Rokka.io client library

  Sources   Download

MIT

The Requires

 

The Development Requires

image images rokka rokka.io imagemanipulation

16/04 2018

1.3.1

1.3.1.0 https://github.com/rokka-io/rokka-client-php

Rokka.io client library

  Sources   Download

MIT

The Requires

 

The Development Requires

image images rokka rokka.io imagemanipulation

16/04 2018

1.3.0

1.3.0.0 https://github.com/rokka-io/rokka-client-php

Rokka.io client library

  Sources   Download

MIT

The Requires

 

The Development Requires

image images rokka rokka.io imagemanipulation

16/04 2018

dev-multiarea

dev-multiarea https://github.com/rokka-io/rokka-client-php

Rokka.io client library

  Sources   Download

MIT

The Requires

 

The Development Requires

image images rokka rokka.io imagemanipulation

13/04 2018

dev-templatehelper

dev-templatehelper https://github.com/rokka-io/rokka-client-php

Rokka.io client library

  Sources   Download

MIT

The Requires

 

The Development Requires

image images rokka rokka.io imagemanipulation

10/04 2018

dev-tmp-multiarea-templatehelper

dev-tmp-multiarea-templatehelper https://github.com/rokka-io/rokka-client-php

Rokka.io client library

  Sources   Download

MIT

The Requires

 

The Development Requires

image images rokka rokka.io imagemanipulation

09/04 2018

dev-old/templatehelper-for-reference-2

dev-old/templatehelper-for-reference-2 https://github.com/rokka-io/rokka-client-php

Rokka.io client library

  Sources   Download

MIT

The Requires

 

The Development Requires

image images rokka rokka.io imagemanipulation

09/04 2018

dev-add-php-cs-fixer

dev-add-php-cs-fixer https://github.com/rokka-io/rokka-client-php

Rokka.io client library

  Sources   Download

MIT

The Requires

 

The Development Requires

image images rokka rokka.io imagemanipulation

09/04 2018

dev-old/templatehelper-for-reference

dev-old/templatehelper-for-reference https://github.com/rokka-io/rokka-client-php

Rokka.io client library

  Sources   Download

MIT

The Requires

 

The Development Requires

image images rokka rokka.io imagemanipulation

03/04 2018

dev-restore-and-copy-sourceimage

dev-restore-and-copy-sourceimage https://github.com/rokka-io/rokka-client-php

Rokka.io client library

  Sources   Download

MIT

The Requires

 

The Development Requires

image images rokka rokka.io imagemanipulation

22/02 2018

dev-old/templatehelper-before-rebase

dev-old/templatehelper-before-rebase https://github.com/rokka-io/rokka-client-php

Rokka.io client library

  Sources   Download

MIT

The Requires

 

The Development Requires

image images rokka rokka.io imagemanipulation

19/02 2018

1.2.0

1.2.0.0 https://github.com/rokka-io/rokka-client-php

Rokka.io client library

  Sources   Download

MIT

The Requires

 

The Development Requires

image images rokka rokka.io imagemanipulation

19/02 2018

dev-remove-api-secret-from-client

dev-remove-api-secret-from-client https://github.com/rokka-io/rokka-client-php

Rokka.io client library

  Sources   Download

MIT

The Requires

 

The Development Requires

image images rokka rokka.io imagemanipulation

15/02 2018

dev-old/multiple-operations-and-more

dev-old/multiple-operations-and-more https://github.com/rokka-io/rokka-client-php

Rokka.io client library

  Sources   Download

MIT

The Requires

 

The Development Requires

image images rokka rokka.io imagemanipulation

19/12 2017

dev-templatehelper-from-multiple-operations

dev-templatehelper-from-multiple-operations https://github.com/rokka-io/rokka-client-php

Rokka.io client library

  Sources   Download

MIT

The Requires

 

The Development Requires

image images rokka rokka.io imagemanipulation

19/12 2017

dev-old/templatehelper-from-multiple-operations

dev-old/templatehelper-from-multiple-operations https://github.com/rokka-io/rokka-client-php

Rokka.io client library

  Sources   Download

MIT

The Requires

 

The Development Requires

image images rokka rokka.io imagemanipulation

18/12 2017

dev-multiple-operations-and-more

dev-multiple-operations-and-more https://github.com/rokka-io/rokka-client-php

Rokka.io client library

  Sources   Download

MIT

The Requires

 

The Development Requires

image images rokka rokka.io imagemanipulation

18/12 2017

dev-sami-docs

dev-sami-docs https://github.com/rokka-io/rokka-client-php

Rokka.io client library

  Sources   Download

MIT

The Requires

 

The Development Requires

image images rokka rokka.io imagemanipulation

16/12 2017

dev-add-iterators

dev-add-iterators https://github.com/rokka-io/rokka-client-php

Rokka.io client library

  Sources   Download

MIT

The Requires

 

The Development Requires

image images rokka rokka.io imagemanipulation

09/12 2017

dev-feature-retry-backoff-on-429

dev-feature-retry-backoff-on-429 https://github.com/rokka-io/rokka-client-php

Rokka.io client library

  Sources   Download

MIT

The Requires

 

The Development Requires

image images rokka rokka.io imagemanipulation

13/11 2017

dev-feature-getDynamicStackFromStackConfig

dev-feature-getDynamicStackFromStackConfig https://github.com/rokka-io/rokka-client-php

Rokka.io client library

  Sources   Download

MIT

The Requires

 

The Development Requires

image images rokka rokka.io imagemanipulation

13/11 2017

1.1.0

1.1.0.0 https://github.com/rokka-io/rokka-client-php

Rokka.io client library

  Sources   Download

MIT

The Requires

 

The Development Requires

image images rokka rokka.io imagemanipulation

13/11 2017

dev-develop

dev-develop https://github.com/rokka-io/rokka-client-php

Rokka.io client library

  Sources   Download

MIT

The Requires

 

The Development Requires

image images rokka rokka.io imagemanipulation

10/11 2017

dev-new-saveStack-method

dev-new-saveStack-method https://github.com/rokka-io/rokka-client-php

Rokka.io client library

  Sources   Download

MIT

The Requires

 

The Development Requires

image images rokka rokka.io imagemanipulation

04/11 2017

1.0.0

1.0.0.0 https://github.com/rokka-io/rokka-client-php

Rokka.io client library

  Sources   Download

MIT

The Requires

 

The Development Requires

image images rokka rokka.io imagemanipulation

03/11 2017

dev-feature-static-metadata

dev-feature-static-metadata https://github.com/rokka-io/rokka-client-php

Rokka.io client library

  Sources   Download

MIT

The Requires

 

The Development Requires

image images rokka rokka.io imagemanipulation

24/08 2017

0.10.0

0.10.0.0 https://github.com/rokka-io/rokka-client-php

Rokka.io client library

  Sources   Download

MIT

The Requires

 

The Development Requires

image images rokka rokka.io imagemanipulation

24/08 2017

dev-feature-add-meta-on-upload

dev-feature-add-meta-on-upload https://github.com/rokka-io/rokka-client-php

Rokka.io client library

  Sources   Download

MIT

The Requires

 

The Development Requires

image images rokka rokka.io imagemanipulation

16/08 2017

0.9.0

0.9.0.0 https://github.com/rokka-io/rokka-client-php

Rokka.io client library

  Sources   Download

MIT

The Requires

 

The Development Requires

image images rokka rokka.io imagemanipulation

12/06 2017

0.8.0

0.8.0.0 https://github.com/rokka-io/rokka-client-php

Rokka.io client library

  Sources   Download

MIT

The Requires

 

The Development Requires

image images rokka rokka.io imagemanipulation

12/05 2017

0.7.0

0.7.0.0 https://github.com/rokka-io/rokka-client-php

Rokka.io client library

  Sources   Download

MIT

The Requires

 

The Development Requires

image images rokka rokka.io imagemanipulation

10/05 2017

dev-feature-multiple-hashes-same-binary

dev-feature-multiple-hashes-same-binary https://github.com/rokka-io/rokka-client-php

Rokka.io client library

  Sources   Download

MIT

The Requires

 

The Development Requires

image images rokka rokka.io imagemanipulation

12/04 2017

0.6.0

0.6.0.0 https://github.com/rokka-io/rokka-client-php

Rokka.io client library

  Sources   Download

MIT

The Requires

 

The Development Requires

image images rokka rokka.io imagemanipulation

11/04 2017

dev-update-subject-area-handling

dev-update-subject-area-handling https://github.com/rokka-io/rokka-client-php

Rokka.io client library

  Sources   Download

MIT

The Requires

 

The Development Requires

image images rokka rokka.io imagemanipulation

10/03 2017

0.5.1

0.5.1.0 https://github.com/rokka-io/rokka-client-php

Rokka.io client library

  Sources   Download

MIT

The Requires

 

The Development Requires

image images rokka rokka.io imagemanipulation

02/03 2017

0.5.0

0.5.0.0 https://github.com/rokka-io/rokka-client-php

Rokka.io client library

  Sources   Download

MIT

The Requires

 

The Development Requires

image images rokka rokka.io imagemanipulation

23/02 2017

0.4.4

0.4.4.0 https://github.com/rokka-io/rokka-client-php

Rokka.io client library

  Sources   Download

MIT

The Requires

 

The Development Requires

image images rokka rokka.io imagemanipulation

01/12 2016

0.4.3

0.4.3.0 https://github.com/rokka-io/rokka-client-php

Rokka.io client library

  Sources   Download

MIT

The Requires

 

The Development Requires

image images rokka rokka.io imagemanipulation

17/10 2016

0.4.2

0.4.2.0 https://github.com/rokka-io/rokka-client-php

Rokka.io client library

  Sources   Download

MIT

The Requires

 

The Development Requires

image images rokka rokka.io imagemanipulation

12/07 2016

0.4.1

0.4.1.0 https://github.com/rokka-io/rokka-client-php

Rokka.io client library

  Sources   Download

MIT

The Requires

 

The Development Requires

image images rokka rokka.io imagemanipulation

08/07 2016

0.4.0

0.4.0.0 https://github.com/rokka-io/rokka-client-php

Rokka.io client library

  Sources   Download

MIT

The Requires

 

The Development Requires

image images rokka rokka.io imagemanipulation

08/07 2016

0.3.0

0.3.0.0 https://github.com/rokka-io/rokka-client-php

Rokka.io client library

  Sources   Download

MIT

The Requires

 

The Development Requires

image images rokka rokka.io imagemanipulation

23/03 2016

0.2.1

0.2.1.0 https://github.com/rokka-io/rokka-client-php

Rokka.io client library

  Sources   Download

MIT

The Requires

 

The Development Requires

image images rokka rokka.io imagemanipulation

18/03 2016

0.2.0

0.2.0.0 https://github.com/rokka-io/rokka-client-php

Rokka.io client library

  Sources   Download

MIT

The Requires

 

The Development Requires

image images rokka rokka.io imagemanipulation