PHPackages                             treinetic/remote-storage - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [File &amp; Storage](/categories/file-storage)
4. /
5. treinetic/remote-storage

ActiveLibrary[File &amp; Storage](/categories/file-storage)

treinetic/remote-storage
========================

Remote storage service client

v0.1(8y ago)117MITPHPPHP &gt;=7.0

Since Mar 19Pushed 8y ago2 watchersCompare

[ Source](https://github.com/Treinetic/RemoteStorage-PHP)[ Packagist](https://packagist.org/packages/treinetic/remote-storage)[ RSS](/packages/treinetic-remote-storage/feed)WikiDiscussions master Synced today

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Treinetic Remote Storage - PHP SDK
==================================

[](#treinetic-remote-storage---php-sdk)

Treinetic remote storage (TRS) is a highly available cloud storage services. We provide 99.9% up time and multi regional backups. TRS provide sophisticated security compliances and it is optimized for high speed data delivery. For more details contact us via

Installing
==========

[](#installing)

```
composer require treinetic/remote-storage
```

Usage
=====

[](#usage)

### Initialization

[](#initialization)

Import StorageClient into your .php file

```
use Treinetic\RStorage\StorageClient;
```

Then initialize the `StorageClient`. `StorageClient`'s constructor accept 3 arguments.

- `URL` endpoint of the remote server
- `accessKey` enpoint access key
- `secretKey` enpoint secret key

```
$storageClient = new \Treinetic\RStorage\StorageClient($server,
                                                       $accessKey,
                                                       $secretKey);
```

### Make Directory

[](#make-directory)

```
$storageClient->makeDirectory("dirName");
```

### Store files

[](#store-files)

```
$storageClient->put('./test/img.jpg', 'user/profile', 'my.jpg');
```

- 1st parameeter is the local file path
- 2nd parameter is the remote directory. (It will create a directory if not exists)
- 3rd prarameter is the file name for remote file

### Get Files

[](#get-files)

```
$response = $storageClient->get('user/profile/my.jpg');
file_put_contents('img.jpg', $response);
```

### Copy Files

[](#copy-files)

```
$storageClient->copy('user/profile/my.jpg', 'user/profile/copy.jpg');
```

- 1st parameter is the source file
- 2nd parameter is the destination file

### Move Files

[](#move-files)

```
$storageClient->move('user/profile/my.jpg', 'user/profile/move.jpg');
```

- 1st parameter is the source file
- 2nd parameter is the destination file

### Check if exists

[](#check-if-exists)

```
$result = $storageClient->exists('user/profile/my.jpg');
var_dump($result); // true or false
```

### Delete Files

[](#delete-files)

```
$storageClient->delete('user/profile/my.jpg');
```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3024d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1076374?v=4)[Imal Hasaranga Perera](/maintainers/imalhasaranga)[@imalhasaranga](https://github.com/imalhasaranga)

---

Top Contributors

[![ImHmg](https://avatars.githubusercontent.com/u/6729722?v=4)](https://github.com/ImHmg "ImHmg (4 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/treinetic-remote-storage/health.svg)

```
[![Health](https://phpackages.com/badges/treinetic-remote-storage/health.svg)](https://phpackages.com/packages/treinetic-remote-storage)
```

###  Alternatives

[venveo/craft-compress

Create smart zip files from Craft assets on the fly

124.7k](/packages/venveo-craft-compress)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
