Download the PHP package rokka/client without Composer

On this page you can find all versions of the php package rokka/client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package client

Rokka PHP Client

Build Status Static analysis Latest Stable Version

A PHP library to access the API of the Rokka image service.

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

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.

Free account plans are available. Just install the plugin, register and use it.

Installation

Require the library using composer:

composer require rokka/client

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.

The Rokka\Client\Factory is the entry point for creating the API client.

You then need to set the credentials you created with the cli command.

User Client

The user client is used for user and organization management.

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

Image Client

The image client is used to upload images into an organization and manage rendering stacks.

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

Options for clients

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

Usage

Read the Getting Started guide of the rokka.io documentation to learn about the basic concepts of rokka.

The image and user clients provide the operations described in the API Reference section of the rokka documentation.

See als the API Docs for further information.

Running tests

Run vendor/bin/phpunit in the project root.

Running PHP-CS-Fixer

Running phpstan


All versions of client with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
guzzlehttp/guzzle Version ^6.5.8|^7.4.5
jbroadway/urlify Version ^1.2
guzzlehttp/psr7 Version ^1.9.1|^2.4.5
ext-json Version *
rokka/utils Version ^1.0
firebase/php-jwt Version ^6.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package rokka/client contains the following files

Loading the files please wait ....