PHPackages                             thuraaung2493/space-file-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. thuraaung2493/space-file-storage

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

thuraaung2493/space-file-storage
================================

A package that wraps the Laravel file storage API for DigitalOcean's space storage.

015PHP

Since Jun 18Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/thuraaung2493/space-file-storage)[ Packagist](https://packagist.org/packages/thuraaung2493/space-file-storage)[ RSS](/packages/thuraaung2493-space-file-storage/feed)WikiDiscussions main Synced today

READMEChangelogDependenciesVersions (2)Used By (0)

Space Storage
=============

[](#space-storage)

**It supports Laravel 9+ and PHP 8.2+**

Installation
------------

[](#installation)

```
composer require thuraaung2493/space-file-storage@dev
```

Configuration
-------------

[](#configuration)

Copy the following config to `config/filesystems.php` file and

```
  'space' => [
    'driver' => 's3',
    'key' => env('SPACE_ACCESS_KEY_ID'),
    'secret' => env('SPACE_SECRET_ACCESS_KEY'),
    'region' => env('SPACE_DEFAULT_REGION'),
    'bucket' => env('SPACE_BUCKET'),
    'cdn_endpoint' => env('SPACE_CDN_ENDPOINT'),
    'folder' => env('SPACE_FOLDER'),
    'url' => env('SPACE_URL'),
    'endpoint' => env('SPACE_ENDPOINT'),
    'use_path_style_endpoint' => env('SPACE_USE_PATH_STYLE_ENDPOINT', false),
    'throw' => true,
  ],
```

add these env variables to `.env` file.

```
SPACE_ACCESS_KEY_ID=
SPACE_SECRET_ACCESS_KEY=
SPACE_DEFAULT_REGION=
SPACE_BUCKET=
SPACE_CDN_ENDPOINT=
SPACE_ENDPOINT=
SPACE_USE_PATH_STYLE_ENDPOINT=
```

Usage
-----

[](#usage)

```
// Facades
use Thuraaung\SpaceStorage\Facades\SpaceStorage

SpaceStorage::clearCache($folder, $fileName);
SpaceStorage::display($path);
SpaceStorage::upload($folder, $file);
SpaceStorage::put($folder, $link);
SpaceStorage::update($oldPath, $file);
SpaceStorage::exists($path);
SpaceStorage::delete($path);

// Or

use Thuraaung\SpaceStorage\SpaceStorage;

$storage = new SpaceStorage();
$storage->clearCache($folder, $fileName);
$storage->display($path);
$storage->put($folder, $link);
$storage->upload($folder, $file);
$storage->update($oldPath, $file);
$storage->exists($path);
$storage->delete($path);
```

Test
----

[](#test)

```
  composer test
```

License
-------

[](#license)

This package is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance52

Moderate activity, may be stable

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity24

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://avatars.githubusercontent.com/u/22706964?v=4)[Thura@Blackmonster](/maintainers/thuraaung2493)[@thuraaung2493](https://github.com/thuraaung2493)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/thuraaung2493-space-file-storage/health.svg)

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

PHPackages © 2026

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