Search by

darvis / lemmings

darvis

A Lemmings easter egg for Laravel applications: a hidden page with a link to the developer, to prove who built the site.

Package info

github.com/ArvidDeJong/lemmings

Homepage

Documentation

Language:Blade

pkg:composer/darvis/lemmings

Statistics

Installs: 573

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v1.7.1 2026-09-21 11:24 UTC

README

Latest version Tests PHP version License

A hidden Lemmings easter egg page for Laravel applications. The umbrella in the picture links to your own site, as a quiet proof of who built the application. The package also adds a page that clears the caches on hosting without shell access, which only works with a secret token.

Features

  • Nothing to set up - install the package and /lemmings is there
  • Your path, your link - LEMMINGS_ROUTE and LEMMINGS_URL in .env
  • Says nothing about the application - no versions, no environment, nothing from the request on the page
  • Asks search engines to stay away - the page carries noindex, nofollow
  • Your own page - override the view in resources/views/vendor/darvis-lemmings
  • Clear the caches without a shell - /clearDgP, closed until you set LEMMINGS_CLEAR_TOKEN
  • Laravel Boost - guideline and skill included, so an AI assistant in your app knows the package

Requirements

  • PHP 8.2+
  • Laravel 11, 12 or 13

Installation

composer require darvis/lemmings

.env:

LEMMINGS_URL=https://your-own-site.example

Quick start

Open https://your-site.example/lemmings and click the umbrella: your site opens in a new tab. To link to the page from a Blade view, use the route name, because the path can be changed with LEMMINGS_ROUTE:

<a href="{{ route('lemmings') }}" rel="nofollow">&pi;</a>

Clearing the caches without a shell

Know this before you install: the package registers GET /clearDgP, which runs cache:clear, route:clear, config:clear, view:clear, storage:link, event:clear and optimize:clear. It answers 404 until you set a secret, and after that only a request that carries the secret gets through. Every refusal is the same 404 as a path that does not exist, and after five wrong tokens in a minute an IP address gets that 404 for every request until the minute is over.

php -r "echo bin2hex(random_bytes(24));"    # make a token
LEMMINGS_CLEAR_TOKEN=paste-the-48-characters-here
curl -i -H "X-Lemmings-Token: paste-the-48-characters-here" https://your-site.example/clearDgP

From 1.5.0 to 1.6.0 this page was open to every visitor. Use 1.7.0 or later, and read the security notes.

Documentation

The full documentation lives on the documentation site:

Laravel Boost

The package ships a guideline and a skill for Laravel Boost. Run php artisan boost:install, or php artisan boost:update --discover in a project that already uses Boost.

Testing

composer test      # Pest
composer lint      # Pint, check only; composer format fixes
composer analyse   # Larastan

Changelog

See CHANGELOG.

Contributing

See CONTRIBUTING.

Security

Please report a vulnerability privately, as described in SECURITY, not in the issue tracker.

License

The MIT License (MIT). See LICENSE.