PHPackages                             grandwebdesign/digitalocean-spaces-laravel - 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. grandwebdesign/digitalocean-spaces-laravel

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

grandwebdesign/digitalocean-spaces-laravel
==========================================

This package will help uploading and removing assets to digitalocean spaces

1.2.2(2y ago)060MITPHPPHP ^8.1CI failing

Since Aug 18Pushed 2y ago1 watchersCompare

[ Source](https://github.com/grandwebdesign/digitalocean-spaces-laravel)[ Packagist](https://packagist.org/packages/grandwebdesign/digitalocean-spaces-laravel)[ RSS](/packages/grandwebdesign-digitalocean-spaces-laravel/feed)WikiDiscussions master Synced today

READMEChangelog (2)Dependencies (4)Versions (13)Used By (0)

DigitalOcean Spaces for Laravel
===============================

[](#digitalocean-spaces-for-laravel)

This package provides easy integration and management of DigitalOcean Spaces in Laravel applications.

Requirements
------------

[](#requirements)

- PHP &gt;= 8.1
- Laravel &gt;= 10.0

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

[](#installation)

To install the package via Composer:

```
composer require grandwebdesign/digitalocean-spaces-laravel
```

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

[](#configuration)

Once you've installed the package, set the following environment variables in your .env file:

```
DO_ACCESS_KEY_ID=
DO_SECRET_ACCESS_KEY=
DO_DEFAULT_REGION=
DO_BUCKET=
DO_CDN_ENDPOINT=
DO_ENDPOINT=
DO_FOLDER=
```

Note on DO\_FOLDER: This variable can remain empty if you want to upload files to the root directory. Otherwise, specify a folder name, such as `"uploads"`, so all files will be uploaded to the `/uploads/` path.

If you want to compress the image files as you upload you also need to specify your [TinyPNG](https://tinypng.com/) API key to your `.env` file.

```
TINIFY_API_KEY=
```

Usage
-----

[](#usage)

To upload a file

```
use Grandwebdesign\DigitaloceanSpacesLaravel\DigitaloceanSpaces;

$digitaloceanSpace = new DigitaloceanSpaces(
    file: $this->file('image'),
    folder: '',
    fileName: 'filename.png'
);

$fileName = $digitaloceanSpace->upload();
```

To remove a file

```
use Grandwebdesign\DigitaloceanSpacesLaravel\DigitaloceanSpaces;

$digitaloceanSpace = new DigitaloceanSpaces(
    file: 'filename.png',
);

$fileName = $digitaloceanSpace->delete();
```

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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

Every ~0 days

Total

12

Last Release

1048d ago

PHP version history (2 changes)1.0.0PHP ^7.4|^8.0

1.0.1PHP ^8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/40dbe4b79913146f4257dabd7e591d97f9610aca30c34aa5633da41e24b729f0?d=identicon)[grandwebdesign](/maintainers/grandwebdesign)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/grandwebdesign-digitalocean-spaces-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/grandwebdesign-digitalocean-spaces-laravel/health.svg)](https://phpackages.com/packages/grandwebdesign-digitalocean-spaces-laravel)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[unisharp/laravel-filemanager

A file upload/editor intended for use with Laravel 5 to 10 and CKEditor / TinyMCE

2.2k3.5M85](/packages/unisharp-laravel-filemanager)[laravel/mcp

Rapidly build MCP servers for your Laravel applications.

77022.3M151](/packages/laravel-mcp)[mike-bronner/laravel-model-caching

Automatic caching for Eloquent models.

2.4k90.5k1](/packages/mike-bronner-laravel-model-caching)[illuminate/auth

The Illuminate Auth package.

10528.2M1.2k](/packages/illuminate-auth)[illuminate/routing

The Illuminate Routing package.

1419.2M3.0k](/packages/illuminate-routing)

PHPackages © 2026

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