PHPackages                             mdxdave/force-download - 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. mdxdave/force-download

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

mdxdave/force-download
======================

Force download of assets

3.0.0(1y ago)24061[2 issues](https://github.com/MDXDave/force-download/issues)MITPHP

Since Aug 2Pushed 1y ago1 watchersCompare

[ Source](https://github.com/MDXDave/force-download)[ Packagist](https://packagist.org/packages/mdxdave/force-download)[ RSS](/packages/mdxdave-force-download/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (6)Dependencies (2)Versions (6)Used By (0)

ForceDownload plugin for Craft CMS 5.x
======================================

[](#forcedownload-plugin-for-craft-cms-5x)

Simple Downloader for Craft CMS 5.x

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

[](#requirements)

This plugin requires Craft CMS 5.x or later.

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

[](#installation)

To install the plugin, follow these instructions.

1. Open your terminal and go to your Craft project:

    ```
     cd /path/to/project

    ```
2. Then tell Composer to load the plugin:

    ```
     composer require mdxdave/force-download

    ```
3. In the Control Panel, go to Settings → Plugins and click the “Install” button for ForceDownload.

Using ForceDownload
-------------------

[](#using-forcedownload)

Just use the following code in your Twig template file (whereas **filename** is an asset field):

```
     {{ entry.filename[0]|forceDownload }}

```

To use a rudimental download counter, use the fieldname as 2nd param (the **downloadCounter** field will be inceremented by 1):

```
     {{ entry.filename[0]|forceDownload("downloadCounter") }}

```

See example in the folder *example*.

Brought to you by [MDXDave](https://mdxdave.de)

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 96.6% 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 ~670 days

Total

5

Last Release

525d ago

Major Versions

1.2.1 → 2.0.02022-06-11

2.0.0 → 3.0.02024-12-06

### Community

Maintainers

![](https://www.gravatar.com/avatar/cf88799e93a40f788266c08703f3ebc06d2d724f11c53892d93165849fc0bcce?d=identicon)[MDXDave](/maintainers/MDXDave)

---

Top Contributors

[![MDXDave](https://avatars.githubusercontent.com/u/6099976?v=4)](https://github.com/MDXDave "MDXDave (28 commits)")[![brandonkelly](https://avatars.githubusercontent.com/u/47792?v=4)](https://github.com/brandonkelly "brandonkelly (1 commits)")

---

Tags

cmscraftcraft3craftcmscraftcms-plugincmsCraftcraftcmscraft-plugintimeago

### Embed Badge

![Health badge](/badges/mdxdave-force-download/health.svg)

```
[![Health](https://phpackages.com/badges/mdxdave-force-download/health.svg)](https://phpackages.com/packages/mdxdave-force-download)
```

###  Alternatives

[servd/craft-remote-assets

Move CP assets to an external filesystem such as S3

1215.8k](/packages/servd-craft-remote-assets)[weareferal/remote-backup

Backup your database and assets to a remote location

115.5k](/packages/weareferal-remote-backup)[venveo/craft-compress

Create smart zip files from Craft assets on the fly

124.6k](/packages/venveo-craft-compress)[markdrzy/importable

Add CSV data import functionality to the native Table fieldtype.

114.6k2](/packages/markdrzy-importable)

PHPackages © 2026

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