https://github.com/easmith/selectel-storage-php-class
PHP class for Selectel storage
https://github.com/easmith/selectel-storage-php-class
cloud php selectel storage
Last synced: 2 months ago
JSON representation
PHP class for Selectel storage
- Host: GitHub
- URL: https://github.com/easmith/selectel-storage-php-class
- Owner: easmith
- Created: 2012-06-26T10:14:11.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2024-12-26T12:07:37.000Z (over 1 year ago)
- Last Synced: 2025-12-14T22:36:27.326Z (6 months ago)
- Topics: cloud, php, selectel, storage
- Language: PHP
- Size: 42 KB
- Stars: 45
- Watchers: 9
- Forks: 18
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
selectel-storage-php-class
==========================
composer.json
```js
"require": {
"easmith/selectel-storage": "~1.0",
}
```
```php
createContainer('selectel', array("X-Container-Meta-Type: public"));
// get container info
$container->getInfo()
```
### Containers list
```php
$containerList = $selectelStorage->listContainers();
```
### Create directory
```php
$container->createDirectory('php/test')
```
### List
```php
$dirList = $container->listFiles($limit = 10000, $marker = null, $prefix = null, $path = "");
// files
$fileList = $container->listFiles($limit = 10000, $marker = null, $prefix = null, $path = 'php/');
```
### Put File
```php
$res = $container->putFile(__FILE__, 'example.php',["Content-Type: text/html"]);
```
### File info
```php
$fileInfo = $container->getFileInfo('example.php');
```
### Get file
```php
$file = $container->getFile($fileList[0]);
```
### Copy file
```php
$copyRes = $container->copy('example.php', 'php/test/Examples_copy.php5');
```
### Delete
```php
$deleteRes = $container->delete('example.php');
```