2017 © Pedro Peláez
 

library selectel-storage

Selectel Storage API php wrapper

image

slowprog/selectel-storage

Selectel Storage API php wrapper

  • Thursday, April 14, 2016
  • by SlowProg
  • Repository
  • 1 Watchers
  • 1 Stars
  • 201 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 14 Forks
  • 0 Open issues
  • 2 Versions
  • 7 % Grown

The README.md

selectel-storage-php-class

composer.json, (*1)


"require": { "slowprog/selectel-storage": "~1.0", }

<?php require_once("vendor/autoload.php"); $selectelStorage = new SelectelStorage("User", "Pass");

Create Container

$container = $selectelStorage->createContainer('selectel', array("X-Container-Meta-Type: public"));
// get container info
$container->getInfo()

Containers list

$containerList = $selectelStorage->listContainers();

Create directory

$container->createDirectory('php/test')

List

$dirList = $container->listFiles($limit = 10000, $marker = null, $prefix = null, $path = "");
// files
$fileList = $container->listFiles($limit = 10000, $marker = null, $prefix = null, $path = 'php/');

Put File

$res = $container->putFile(__FILE__, 'example.php');

File info

$fileInfo = $container->getFileInfo('example.php');

Get file

$file = $container->getFile($fileList[0]);

Copy file

$copyRes = $container->copy('example.php', 'php/test/Examples_copy.php5');

Delete

$deleteRes = $container->delete('example.php');

The Versions

14/04 2016

dev-master

9999999-dev

Selectel Storage API php wrapper

  Sources   Download

LGPL-3.0+

The Requires

  • php >=5.3.3

 

by Andrey Tyshev

14/04 2016

0.1.0

0.1.0.0

Selectel Storage API php wrapper

  Sources   Download

LGPL-3.0+

The Requires

  • php >=5.3.3

 

by Andrey Tyshev