PHPackages                             itscoding/serve-secret - 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. itscoding/serve-secret

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

itscoding/serve-secret
======================

Serve password protected files

2.9.1(1y ago)99801[1 PRs](https://github.com/boscho87/serve-secret/pulls)MITPHP

Since Jan 18Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/boscho87/serve-secret)[ Packagist](https://packagist.org/packages/itscoding/serve-secret)[ RSS](/packages/itscoding-serve-secret/feed)WikiDiscussions main Synced 6d ago

READMEChangelog (10)Dependencies (1)Versions (16)Used By (0)

ServeSecret Craft CMS 4.x plugin
================================

[](#servesecret-craft-cms-4x-plugin)

[![Codacy Badge](https://camo.githubusercontent.com/877e93ccaec670fb3897ac7762a04aa990bdfca7d41b3ad3b03abe60077e7abd/68747470733a2f2f6170702e636f646163792e636f6d2f70726f6a6563742f62616467652f47726164652f6231373730333637343832623465663438613263333833396235636238383161)](https://www.codacy.com/gh/boscho87/serve-secret/dashboard?utm_source=github.com&utm_medium=referral&utm_content=boscho87/serve-secret&utm_campaign=Badge_Grade)

[![](resources/img/icon.svg)](resources/img/icon.svg)

This Plugin is Free, but i'm happy if you want to Support my work!
------------------------------------------------------------------

[](#this-plugin-is-free-but-im-happy-if-you-want-to-support-my-work)

[Spend (go to PayPal)](https://www.paypal.com/donate/?hosted_button_id=KS6KTZ6QJ8DBL)

[![QRCode (go to PayPal)](.github/QR-Code.png)](.github/QR-Code.png)

---

Serve files that are not Stored in public accessible Directories. e.g for Password-Protected Areas. File links could and should not be shared!

The benefit of this is vs not having public Url's is you have a FilePreview in the CP even, the Files are not Public!

The file links are decoded to hide the path from the user and to make the link only accessible for the current Session, so that's the reason why it's not possible to share the links!

***It's not meant to store sensitive data that possibly not should be leaked.*** But data that should not be found by SearchEngines or something like a ranking in a pdf file etc.

The links created by the plugin cannot be shared!

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

[](#requirements)

This plugin requires Craft CMS 4.0.0 or later.

Contribute to the Project
-------------------------

[](#contribute-to-the-project)

if you want to help with this project, [read how to contribute](CONTRIBUTE.md)

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 itscoding/serve-secret

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

Using ServeSecret
-----------------

[](#using-servesecret)

[![Screenshot](resources/img/volume.png)](resources/img/volume.png)

1. Crate a volume in craft that starts with `@secretStorage`.
2. add `storage/secretStorage` to the gitignore dire if you use the @secretStorage alias.
3. Use it in your templates --&gt; put your asset as a method argument!

```
# the second parameter is optional, if is set to false, the file will download instead of open in the browser,the default value is true
{{ entry.files.first().title }}

{% for files in entry.files %}
       {{ file.title }}
{% endfor %}
```

ServeSecret Roadmap
-------------------

[](#servesecret-roadmap)

Some things to do, and ideas for potential features:

- Create sharable fileLinks

Brought to you by [Simon Müller](https://itscoding.ch)

###  Health Score

46

—

FairBetter than 93% of packages

Maintenance65

Regular maintenance activity

Popularity21

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 82.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 ~183 days

Recently: every ~0 days

Total

14

Last Release

662d ago

Major Versions

1.2.1 → 2.0.02022-07-10

### Community

Maintainers

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

---

Top Contributors

[![boscho87](https://avatars.githubusercontent.com/u/11815871?v=4)](https://github.com/boscho87 "boscho87 (53 commits)")[![semantic-release-bot](https://avatars.githubusercontent.com/u/32174276?v=4)](https://github.com/semantic-release-bot "semantic-release-bot (10 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")

---

Tags

cmsCraftcraftcmscraft-pluginservesecret

### Embed Badge

![Health badge](/badges/itscoding-serve-secret/health.svg)

```
[![Health](https://phpackages.com/badges/itscoding-serve-secret/health.svg)](https://phpackages.com/packages/itscoding-serve-secret)
```

###  Alternatives

[superbig/craft3-beam

Generate CSVs and XLS files in your templates

1933.9k](/packages/superbig-craft3-beam)[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)
