nimbella/nimbella

Nimbella SDK for PHP

1.1.0 2020-09-03 13:50 UTC

This package is auto-updated.

Last update: 2024-04-19 20:42:05 UTC


README

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.