PHPackages                             filerobot/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. [API Development](/categories/api)
4. /
5. filerobot/storage

ActiveLibrary[API Development](/categories/api)

filerobot/storage
=================

API Connect Filerobot

03PHP

Since Jan 10Pushed 4y ago1 watchersCompare

[ Source](https://github.com/thanhdai917/storage)[ Packagist](https://packagist.org/packages/filerobot/storage)[ RSS](/packages/filerobot-storage/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

PHP library Storage
===================

[](#php-library-storage)

Installation instructions
-------------------------

[](#installation-instructions)

### Installation

[](#installation)

Simple installation via Composer

```
composer require filerobot/storage
```

Your config/filesystems.php.

```
'filerobot' => [
    'driver' => 'filerobot',
    'key' => env('FILEROBOT_KEY_ID'),
]
```

Your .env

```
FILEROBOT_KEY_ID=fa5fe3303dd34e1da4810915c7c3fd6f
```

Usage
-----

[](#usage)

```
Storage::disk('filerobot')
```

### Files operations

[](#files-operations)

#### List or search files

[](#list-or-search-files)

Lists all files in your Filerobot container. You can alternatively search by providing a search string. Can be recursive. example: type:folder\_namew

```
return Storage::disk('filerobot')->listContents('folder:api-demo', false);
```

You can add collect.

```
return collect(Storage::disk('filerobot')->listContents('folder:api-demo', false))->where('name','test01')->first();
```

#### Get file or folder details

[](#get-file-or-folder-details)

Retrieving a file's or folder details over UUID requires to authenticate against the API.

```
return Storage::disk('filerobot')->read('63accfbe-d1a1-502b-a1f6-47397645000e');
```

#### Rename file or folder

[](#rename-file-or-folder)

Renames the file or folder with the value given in the body.

```
return Storage::disk('filerobot')->rename($uuid, $name_change);
```

#### Move file

[](#move-file)

Will move the file or folder to a new folder. The folder will be created if it doesn't already exist.

```
return Storage::disk('filerobot')->copy($uuid, $name_change);
```

#### Delete file

[](#delete-file)

Delete a file using its UUID as reference.

```
return Storage::disk('filerobot')->delete($file_uuid);
```

#### Upload files

[](#upload-files)

Multiple methods are available to suit different needs

##### - Method 1 - multipart/form-data request

[](#--method-1---multipartform-data-request)

```
$config = [
    'name' => foder_name, // example '/api-demo'
    'type' => 'multipart'
];
$image = public_path('4090e6607e8bea2c9845b12630a927fd.jpg');
$name_upload = 'test01.png';
Storage::disk('filerobot')->put($name_upload, $image,$config);
```

##### - Method 2 - URL(s) of remotely hosted file(s)

[](#--method-2---urls-of-remotely-hosted-files)

```
$config = [
    'name' => forde_name, // example '/api-demo'
    'type' => 'remote'
];
$content = [
    [
        "name" => 'test03.png',
        "url"  => 'https://www.louisvuitton.com/images/U_Tr_Brand_campaign_Milos_DI3.jpg?wid=2048'
    ]
];

Storage::disk('filerobot')->put(null, json_encode($content),$config);
```

##### - Method 3 - base64-encoded content

[](#--method-3---base64-encoded-content)

```
$config = [
    'name' => folder_name, // example '/api-demo'
    'type' => 'base64'
];
$image  = base64_encode(file_get_contents('4090e6607e8bea2c9845b12630a927fd.jpg'));
$name_upload = 'test01.png';
Storage::disk('filerobot')->put($name_upload, $image,$config);
```

##### - Upload file stream

[](#--upload-file-stream)

```
$config = [
    'name' => folder_name, // example '/api-demo'
];

$image  = fopen(public_path('4090e6607e8bea2c9845b12630a927fd.jpg'),"r");
$name_upload = 'test01.png';
Storage::disk('filerobot')->put($name_upload, $image,$config);
```

### Folders operations

[](#folders-operations)

#### List and search folders

[](#list-and-search-folders)

Lists all folders in your Filerobot container. You can search by providing a search string. Can be recursive. example: type:folder\_name

```
return Storage::disk('filerobot')->listContents('folder:api-demo', false);
```

#### Get folder details

[](#get-folder-details)

Gets all information of a folder identified by its folder\_uuid. This API will also allow you to check the existence of a folder.

```
return Storage::disk('filerobot')->read('63accfbe-d1a1-502b-a1f6-47397645000e');
```

#### Rename folder

[](#rename-folder)

Renames the folder identified by its folder\_uuid to the value given in the body

```
return Storage::disk('filerobot')->rename($uuid, $name_change);
```

#### Move folder

[](#move-folder)

Will move a folder, identified by its folder\_uuid to a new location (folder) which can be identified by destination\_folder\_uuid.

```
return Storage::disk('filerobot')->copy($folder_uuid, $destination_folder_uuid);
```

#### Delete folder

[](#delete-folder)

Deletes a folder *and all sub-folders recursively*.

```
return Storage::disk('filerobot')->deleteDirectory($folder_uuid);
```

#### Create folder

[](#create-folder)

Creates a folder from the value given in the body.

```
return Storage::disk('filerobot')->makeDirectory($folder_name);
```

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity27

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/d372d4ae5431b2e01b1ff79f2799f8af1424bce30fcd986ae24b77efd3d10d8e?d=identicon)[thanhdai917](/maintainers/thanhdai917)

---

Top Contributors

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

### Embed Badge

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

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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