PHPackages                             yaroslawww/laravel-download-util - 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. yaroslawww/laravel-download-util

Abandoned → [think.studio/laravel-download-util](/?search=think.studio%2Flaravel-download-util)Library[File &amp; Storage](/categories/file-storage)

yaroslawww/laravel-download-util
================================

Util to create download archive.

1.2.0(2y ago)034MITPHPPHP ^8.1

Since Jul 31Pushed 2y ago1 watchersCompare

[ Source](https://github.com/dev-think-one/laravel-download-util)[ Packagist](https://packagist.org/packages/yaroslawww/laravel-download-util)[ Docs](https://github.com/dev-think-one/laravel-download-util)[ RSS](/packages/yaroslawww-laravel-download-util/feed)WikiDiscussions main Synced 3d ago

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

Laravel download util.
======================

[](#laravel-download-util)

[![Packagist License](https://camo.githubusercontent.com/51b1b3ccb70134e8dc5b581ab34e99824e2c185d68c787ed161e5d1ea74a479c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7468696e6b2e73747564696f2f6c61726176656c2d646f776e6c6f61642d7574696c3f636f6c6f723d253233346463373166)](https://camo.githubusercontent.com/51b1b3ccb70134e8dc5b581ab34e99824e2c185d68c787ed161e5d1ea74a479c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7468696e6b2e73747564696f2f6c61726176656c2d646f776e6c6f61642d7574696c3f636f6c6f723d253233346463373166)[![Packagist Version](https://camo.githubusercontent.com/c5445a0ab723be793cd1f767bcb95c3affb39a87a6c8b80aa91203cec6720af0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7468696e6b2e73747564696f2f6c61726176656c2d646f776e6c6f61642d7574696c)](https://packagist.org/packages/think.studio/laravel-download-util)[![Total Downloads](https://camo.githubusercontent.com/f9b2023bdc78c139f34df7292c3594258cde85ca3fcea580e4c071d00b337244/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7468696e6b2e73747564696f2f6c61726176656c2d646f776e6c6f61642d7574696c)](https://packagist.org/packages/think.studio/laravel-download-util)[![Build Status](https://camo.githubusercontent.com/3f15386c0dddb4225814a28b2eccc537272b6d2e246409ad9839a8bf48c52707/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6465762d7468696e6b2d6f6e652f6c61726176656c2d646f776e6c6f61642d7574696c2f6261646765732f6275696c642e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/dev-think-one/laravel-download-util/build-status/main)[![Code Coverage](https://camo.githubusercontent.com/f704a02519d3e10d59237e3f01456c7f0683e06b83f8fd92f89c9bfca4285f54/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6465762d7468696e6b2d6f6e652f6c61726176656c2d646f776e6c6f61642d7574696c2f6261646765732f636f7665726167652e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/dev-think-one/laravel-download-util/?branch=main)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/4ea961cf4ef86c72790d45e3487331c1ebec70a0ebbf78ec72aa2e4120979859/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f6465762d7468696e6b2d6f6e652f6c61726176656c2d646f776e6c6f61642d7574696c2f6261646765732f7175616c6974792d73636f72652e706e673f623d6d61696e)](https://scrutinizer-ci.com/g/dev-think-one/laravel-download-util/?branch=main)

Util to create download archive.

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

[](#installation)

Install the package via composer:

```
composer require think.studio/laravel-download-util
```

Optionally you can publish the config file with:

```
php artisan vendor:publish --provider="LaravelDownloadUtil\ServiceProvider" --tag="config"
```

Usage
-----

[](#usage)

### Archivers

[](#archivers)

#### ZipArchiver

[](#ziparchiver)

```
$storage = Storage::disk('my-disk');

$zipFileName = (new ZipArchiver($storage))
            ->setArchiveCreationCallback(function ($archive, $files,) {
                foreach ($files as $directory => $filesList) {
                    foreach ($filesList as $fileName => $file) {
                        $archive->addFile($file, "{$directory}/".Str::afterLast($fileName, '/'));
                    }
                }
            })->create($files, "app/assets-".Carbon::now()->format('Y-m-d-his'));

if($zipFileName) {
    return $storage->url($zipFileName)''
}
```

### Commands

[](#commands)

```
$schedule->command('download-util:prune-outdated prunable_downloads -S 36000 -E ".zip"')->everyThirtyMinutes();
```

Credits
-------

[](#credits)

- [![Think Studio](https://camo.githubusercontent.com/8e541bece07d503c85a126b5294865faa00e27371048772f566a0cce8c01fd3a/68747470733a2f2f7961726f736c617777772e6769746875622e696f2f696d616765732f73706f6e736f72732f7061636b616765732f6c6f676f2d7468696e6b2d73747564696f2e706e67)](https://think.studio/)

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

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 ~128 days

Total

4

Last Release

996d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/23663794?v=4)[yaroslawww](/maintainers/yaroslawww)[@yaroslawww](https://github.com/yaroslawww)

---

Top Contributors

[![yaroslawww](https://avatars.githubusercontent.com/u/23663794?v=4)](https://github.com/yaroslawww "yaroslawww (7 commits)")

---

Tags

laravelmyriad

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/yaroslawww-laravel-download-util/health.svg)

```
[![Health](https://phpackages.com/badges/yaroslawww-laravel-download-util/health.svg)](https://phpackages.com/packages/yaroslawww-laravel-download-util)
```

###  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)[unisharp/laravel-filemanager

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

2.2k3.3M74](/packages/unisharp-laravel-filemanager)[spatie/laravel-google-cloud-storage

Google Cloud Storage filesystem driver for Laravel

2408.9M13](/packages/spatie-laravel-google-cloud-storage)[zanysoft/laravel-zip

laravel-zip is the world's leading zip utility for file compression and backup.

3142.8M15](/packages/zanysoft-laravel-zip)[dcblogdev/laravel-dropbox

A Laravel Dropbox v2 package

3263.0k](/packages/dcblogdev-laravel-dropbox)[yoelpc4/laravel-cloudinary

Laravel Cloudinary filesystem cloud driver.

3343.0k](/packages/yoelpc4-laravel-cloudinary)

PHPackages © 2026

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