A PHP library to interact with Nimbella.com services.
composer require nimbella/nimbella
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')
);
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.
Apache-2.0. See LICENSE to learn more.