PHPackages                             ssntpl/cloud-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. ssntpl/cloud-storage

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

ssntpl/cloud-storage
====================

Laravel Storage Driver to sync files on to the multiple disks asynchronously

v0.2.6(7mo ago)15151MITPHPPHP ^7.4|^8.0

Since Aug 21Pushed 7mo ago3 watchersCompare

[ Source](https://github.com/ssntpl/cloud-storage)[ Packagist](https://packagist.org/packages/ssntpl/cloud-storage)[ Docs](https://github.com/ssntpl/cloud-storage)[ RSS](/packages/ssntpl-cloud-storage/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (10)Dependencies (8)Versions (28)Used By (0)

Cloud Driver for Laravel Storage
================================

[](#cloud-driver-for-laravel-storage)

[![Latest Version on Packagist](https://camo.githubusercontent.com/3b6071283c8d213b5b04f6c5da2f006a99fcb7c2c34390617059d4a99582b58c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73736e74706c2f636c6f75642d73746f726167652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ssntpl/cloud-storage)[![Total Downloads](https://camo.githubusercontent.com/30189edffdac14eaa39255576e6dcc4642ef3e83f81cb07aa8cc43a4b6f9ed70/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73736e74706c2f636c6f75642d73746f726167652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/ssntpl/cloud-storage)

A powerful Laravel storage driver that enables seamless synchronization of files across multiple disks.

Features
--------

[](#features)

- **Multi-Disk Support:** Define multiple remote disks to store your files.
- **Asynchronous Sync:** Files are synced to all remote disks asynchronously, ensuring high availability.
- **Optimized Access:** Files are accessed from the readable disks priority wise.

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

[](#installation)

Install the package via Composer:

```
composer require ssntpl/cloud-storage
```

Usage
-----

[](#usage)

1. **Configuration:** In your Laravel application's `config/filesystems.php`, define your disks.

    ```
    'disks' => [
       'local' => [
          'driver' => 'local',
          'root' => storage_path('app/private'),
          'write_enabled' => true,
          'write_priority' => 2,
          'read_priority' => 1,
          'retention' => 1,
       ],
       'cloud_disk' => [
          'driver' => 'cloud',
          'disks' => [
             'local', // just write here disk name and other configuration variable can be set on this disk configuration array as mention above.
             [
                'driver' => 'local',
                'root' => storage_path('app/public'),
                'url' => env('APP_URL').'/storage',
                'visibility' => 'public',
                'write_enabled' => true, // false means read only opertions should be done. default is true
                'write_priority' => 1, // 0 means least priority. default is 0
                'read_priority' => 2, // 0 means least priority. default is 0
                'retention' => 0, // in days, 0 means no retention. default is 0. if retention is greater than 0, make sure your queue connection sould not be sync.
             ],
          ],
       ],

       // Define other disks (remote disks used in the cloud disk above)
    ],
    ```
2. **Upload Files:**When uploading files using this driver, they will first be stored on the cache disk and then asynchronously synced to all defined remote disks.

    ```
    Storage::disk('cloud_disk')->put('path/to/file.jpg', $fileContents);
    ```
3. **Access Files:**The driver will check the read disks priority wise.

    ```
    $file = Storage::disk('cloud_disk')->get('path/to/file.jpg');
    ```

Future Enhancements
-------------------

[](#future-enhancements)

- **Improved Sync Strategies:** Additional options for sync strategies, such as prioritizing certain disks.
- **Monitoring and Alerts:** Integrate monitoring for sync failures and performance metrics.

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for detailed information on the latest changes.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

If you discover any security-related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Abhishek Sharma](https://github.com/Abhishek5Sharma)
- [Sambhav Aggarwal](https://github.com/sambhav-aggarwal)
- [All Contributors](../../contributors)

License
-------

[](#license)

This package is licensed under the MIT License. See the [License File](LICENSE.md) for more details.

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance63

Regular maintenance activity

Popularity18

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 54.8% 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 ~28 days

Recently: every ~20 days

Total

17

Last Release

224d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6224763?v=4)[Sword Software N Technologies Pvt. Ltd.](/maintainers/ssntpl)[@ssntpl](https://github.com/ssntpl)

---

Top Contributors

[![JYOTSANASHARMAA](https://avatars.githubusercontent.com/u/116160861?v=4)](https://github.com/JYOTSANASHARMAA "JYOTSANASHARMAA (17 commits)")[![Abhishek5Sharma](https://avatars.githubusercontent.com/u/160742025?v=4)](https://github.com/Abhishek5Sharma "Abhishek5Sharma (9 commits)")[![sambhav-aggarwal](https://avatars.githubusercontent.com/u/4591834?v=4)](https://github.com/sambhav-aggarwal "sambhav-aggarwal (5 commits)")

---

Tags

backupbackup-storagecloud-syncflysystemlaravellaravel-storageFlysystemlaravelcloud-storagessntpl

###  Code Quality

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

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

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

###  Alternatives

[ecotone/laravel

Ecotone for Laravel — CQRS, Event Sourcing, Sagas, Durable Workflows, and Outbox on top of Laravel Queue, via PHP attributes.

21313.7k3](/packages/ecotone-laravel)[singlequote/laravel-webdav

1348.1k](/packages/singlequote-laravel-webdav)[slimani/filament-media-manager

A media manager plugin for Filament.

115.1k](/packages/slimani-filament-media-manager)

PHPackages © 2026

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