Skip to content

nimbella/nimbella-sdk-php

Repository files navigation

Nimbella SDK for PHP

A PHP library to interact with Nimbella.com services.

Installation

composer require nimbella/nimbella

Usage

use Nimbella\Nimbella;

$nim = new Nimbella();

// Get configured \Predis|Client (https://github.com/predis/predis).
$redis = $nim->redis();
$redis->set('foo', 'bar');
$value = $redis->get('foo');

// Get a configured Google\Cloud\Storage\Bucket (https://github.com/googleapis/google-cloud-php-storage).
$bucket = $nim->storage();
// Upload a file to the bucket.
$bucket->upload(
    fopen('/data/file.txt', 'r')
);

Support

We're always happy to help you with any issues you encounter. You may want to join our Slack community to engage with us for a more rapid response.

License

Apache-2.0. See LICENSE to learn more.