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 4w 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

30

—

LowBetter than 61% of packages

Maintenance14

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

617d ago

Major Versions

1.2.1 → 2.0.02022-06-11

2.0.0 → 3.0.02024-12-06

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/6099976?v=4)[Dave](/maintainers/MDXDave)[@MDXDave](https://github.com/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

[verbb/formie

The most user-friendly forms plugin for Craft.

101400.6k78](/packages/verbb-formie)[verbb/hyper

A user-friendly links field for Craft.

24153.5k14](/packages/verbb-hyper)[verbb/vizy

A flexible visual editor field for Craft.

4251.5k1](/packages/verbb-vizy)[verbb/events

A full-featured plugin for event management and ticketing.

2312.1k](/packages/verbb-events)[verbb/icon-picker

A slick field to pick icons from. Supports SVGs, Sprites, Webfonts, Font Awesome and more.

16172.7k7](/packages/verbb-icon-picker)[acclaro/translations

Easily launch and manage multilingual Craft websites without having to copy/paste content or manually track updates.

1229.6k](/packages/acclaro-translations)

PHPackages © 2026

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