PHPackages                             fahlgrendigital/packages-statamic-dynamic-asset-disks - 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. fahlgrendigital/packages-statamic-dynamic-asset-disks

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

fahlgrendigital/packages-statamic-dynamic-asset-disks
=====================================================

Per-disk configurations for statamic asset containers

v1.0.6(2mo ago)032PHPPHP ^8.2

Since Feb 12Pushed 2mo ago5 watchersCompare

[ Source](https://github.com/FahlgrenMortineDigital/packages-statamic-dynamic-asset-disks)[ Packagist](https://packagist.org/packages/fahlgrendigital/packages-statamic-dynamic-asset-disks)[ RSS](/packages/fahlgrendigital-packages-statamic-dynamic-asset-disks/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (6)Versions (8)Used By (0)

Dynamic Asset Disks
===================

[](#dynamic-asset-disks)

This package allows per-disk Statamic asset configurations. For example, lets say you want to have all of your asset containers leverage the local disk on your local environment but leverage a staging S3 connection for your staging environment. This package allows for that.

**Note:** Currently the package only allows for setting the same disk for all asset containers in a given environment.

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

[](#installation)

```
composer require fahlgrendigital/packages-statamic-dynamic-asset-disks
```

```
php artisan vendor:publish --provider=FahlgrendigitalPackages\\StatamicDynamicAssetDisks\\DynamicAssetDisksServiceProvider
```

This will copy the `dynamic-asset-disks` configuration file to your application's configuration directory.

Use
---

[](#use)

There are two primary keys in the above config file:

- disk\_driver
- disks

### Disk Driver

[](#disk-driver)

This configuration setting looks for a value set in the following env variable: `STATAMIC_ASSET_DISK_DRIVER`. This value should map to one of the drivers configured for your asset disk containers.

### Disks

[](#disks)

The package looks under this key for key/value pairs where the **key** maps over to a configured Statamic asset container. The **value** for any defined key should be an array of disk configurations for each desired disk driver.

For example, let's say you have an image asset container called **images** and you want to have two configurations. It would look something like this:

```
'disks' => [
    'images' => [
        [
            'driver'     => 'local',
            'root'       => public_path('images'),
            'url'        => '/images',
            'visibility' => 'public',
        ],
        [
            'driver'                  => 's3',
            'key'                     => env('AWS_ACCESS_KEY_ID'),
            'secret'                  => env('AWS_SECRET_ACCESS_KEY'),
            'region'                  => env('AWS_DEFAULT_REGION'),
            'bucket'                  => env('AWS_BUCKET'),
            'url'                     => env('AWS_URL'),
            'endpoint'                => env('AWS_ENDPOINT'),
            'root'                    => 'awesome-project/images',
            'use_path_style_endpoint' => env('AWS_USE_PATH_STYLE_ENDPOINT', false),
            'visibility'              => 'public',
        ]
    ]
]
```

On your local environment you could set your .env variable `STATAMIC_ASSET_DISK_DRIVER` to be `local`. In your staging environment, that variable could be set to `s3` to leverage the s3 disk configuration.

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance88

Actively maintained with recent releases

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity59

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

Every ~127 days

Recently: every ~190 days

Total

7

Last Release

60d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/60dfacae6ab4f80fadfea286b16ad311302ccef2c53d687b25248d242c4b0541?d=identicon)[fahlgren](/maintainers/fahlgren)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/fahlgrendigital-packages-statamic-dynamic-asset-disks/health.svg)

```
[![Health](https://phpackages.com/badges/fahlgrendigital-packages-statamic-dynamic-asset-disks/health.svg)](https://phpackages.com/packages/fahlgrendigital-packages-statamic-dynamic-asset-disks)
```

###  Alternatives

[aws/aws-sdk-php-laravel

A simple Laravel 9/10/11/12/13 service provider for including the AWS SDK for PHP.

1.7k35.6M75](/packages/aws-aws-sdk-php-laravel)[illuminate/filesystem

The Illuminate Filesystem package.

15261.6M2.6k](/packages/illuminate-filesystem)[stechstudio/laravel-zipstream

A fast and simple streaming zip file downloader for Laravel.

4633.7M3](/packages/stechstudio-laravel-zipstream)[spatie/laravel-google-cloud-storage

Google Cloud Storage filesystem driver for Laravel

2408.9M13](/packages/spatie-laravel-google-cloud-storage)[azure-oss/storage-blob-laravel

Azure Storage Blob filesystem driver for Laravel

63582.2k1](/packages/azure-oss-storage-blob-laravel)[spatie/laravel-backup-server

Backup multiple applications

17016.7k1](/packages/spatie-laravel-backup-server)

PHPackages © 2026

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