PHPackages                             mercator/wn-secret-plugin - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. mercator/wn-secret-plugin

ActiveWinter-plugin[Utility &amp; Helpers](/categories/utility)

mercator/wn-secret-plugin
=========================

WinterCMS plugin providing temporary signed links for internal files and URLs (Twig filter/function `secret`).

061PHP

Since Dec 30Pushed 4mo agoCompare

[ Source](https://github.com/helmutkaufmann/wn-secret-plugin)[ Packagist](https://packagist.org/packages/mercator/wn-secret-plugin)[ RSS](/packages/mercator-wn-secret-plugin/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Secret Plugin for WinterCMS
===========================

[](#secret-plugin-for-wintercms)

**Temporary signed links for internal files and internal URLs.**

This plugin provides a Twig filter and function `secret` that creates signed, expiring links without exposing your real storage paths. It supports:

- Files on any Laravel/Winter filesystem disk (`media`, `local`, `s3`, …)
- Internal URLs (e.g., `/queuedresize/` from a qresize plugin)
- Optional delete-after-download for storage files
- No external hosts (only your own app)

**Author:** Mercator **Plugin code:** `plugins/mercator/secret`

---

1. Installation
---------------

[](#1-installation)

### 1.1. Composer

[](#11-composer)

```
composer require mercator/wn-secret-plugin
```

### 1.2. Clear caches

[](#12-clear-caches)

From the Winter root:

```
php artisan cache:clear
php artisan config:clear
```

Then log in to the backend and ensure **Mercator.Secret** is enabled (if you are using plugin auto-discovery this is normally automatic).

---

2. Configuration
----------------

[](#2-configuration)

The plugin’s config file is located at `plugins/mercator/secret/config/config.php`.

**Default content:**

```
