PHPackages                             felixdorn/laravel-rickroll - 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. felixdorn/laravel-rickroll

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

felixdorn/laravel-rickroll
==========================

Rickrolls people trying to break your site.

1.1.2(2y ago)867.3k6[1 issues](https://github.com/felixdorn/laravel-rickroll/issues)MITPHPPHP ^8

Since Jun 30Pushed 2y ago3 watchersCompare

[ Source](https://github.com/felixdorn/laravel-rickroll)[ Packagist](https://packagist.org/packages/felixdorn/laravel-rickroll)[ Docs](https://github.com/felixdorn/laravel-rickroll)[ RSS](/packages/felixdorn-laravel-rickroll/feed)WikiDiscussions main Synced yesterday

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

[![Rick Astley in Never Gonna Give You UP](https://camo.githubusercontent.com/c9a50abee64e24806b337d36ff7adeb334272ee33f3d7813548009b4cc8a468c/68747470733a2f2f7265732e636c6f7564696e6172792e636f6d2f6479336a78686962612f696d6167652f75706c6f61642f76313538393533343232302f53637265656e73686f745f66726f6d5f323032302d30352d31355f31312d31322d35325f315f686c6a35616a2e706e67)](https://camo.githubusercontent.com/c9a50abee64e24806b337d36ff7adeb334272ee33f3d7813548009b4cc8a468c/68747470733a2f2f7265732e636c6f7564696e6172792e636f6d2f6479336a78686962612f696d6167652f75706c6f61642f76313538393533343232302f53637265656e73686f745f66726f6d5f323032302d30352d31355f31312d31322d35325f315f686c6a35616a2e706e67)

RickRoll for Laravel
====================

[](#rickroll-for-laravel)

[![Tests](https://github.com/felixdorn/laravel-rickroll/actions/workflows/tests.yml/badge.svg)](https://github.com/felixdorn/laravel-rickroll/actions/workflows/tests.yml)[![Formats](https://github.com/felixdorn/laravel-rickroll/actions/workflows/formats.yml/badge.svg)](https://github.com/felixdorn/laravel-rickroll/actions/workflows/formats.yml)

Rickrolls people trying to break your site. This package is inspired by [Liam Hammett's tweet](https://twitter.com/LiamHammett/status/1260984553570570240).

Getting started
---------------

[](#getting-started)

You can install the package via composer, if you don't have composer installed, you can download it [here](https://getcomposer.org):

```
composer require felixdorn/laravel-rickroll
```

Or by adding a requirement in your `composer.json` :

```
{
    "require": {
        "felixdorn/laravel-rickroll": "dev-master"
    }
}
```

We need your knowledge!
-----------------------

[](#we-need-your-knowledge)

Do you know any well-known url that "hackers" use to gather information/secrets ? Add these [here](src/LaravelRickRoll.php), thanks!

Usage
-----

[](#usage)

On your `routes/web.php` just add this single line, and we'll handle the rest for you!

```
use Felix\Rickroll\Facades\RickRoll;

RickRoll::routes();
```

### Redirecting to a custom URL

[](#redirecting-to-a-custom-url)

```
use Felix\Rickroll\Facades\RickRoll;

RickRoll::routes()->redirectsTo('https://mycustom.url');
```

### Remove all URLs

[](#remove-all-urls)

```
use Felix\Rickroll\Facades\RickRoll;

RickRoll::routes()->clear();
```

### Adding a URL

[](#adding-a-url)

```
use Felix\Rickroll\Facades\RickRoll;

RickRoll::routes()->push('/rickroll')
    ->push('/rickroll/{id}', [
        'id' => '[0-9]+'
    ]);
```

### Helper

[](#helper)

There is a `rickroll` function available if you want to rickroll someone in one of your controllers.

```
rickroll('https://my-custom.url');
```

You don't need to return anything, it works just like an `abort`.

### Events

[](#events)

We're dispatching an event with the current request when someone is rick-rolled. Just listen for `Felix\RickRoll\Events\RickRolled` in your `EventServiceProvider` .

Testing
-------

[](#testing)

```
composer test
```

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](.github/CONTRIBUTING.md) for details.

### Security

[](#security)

If you discover any security related issues, please email  instead of using the issue tracker.

Credits
-------

[](#credits)

- [Félix Dorn](https://github.com/felixdorn)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 83.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 ~240 days

Total

4

Last Release

1056d ago

### Community

Maintainers

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

---

Top Contributors

[![felixdorn](https://avatars.githubusercontent.com/u/55788595?v=4)](https://github.com/felixdorn "felixdorn (46 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (5 commits)")[![C2H6-383](https://avatars.githubusercontent.com/u/49997018?v=4)](https://github.com/C2H6-383 "C2H6-383 (3 commits)")[![ATholin](https://avatars.githubusercontent.com/u/33940473?v=4)](https://github.com/ATholin "ATholin (1 commits)")

---

Tags

packagefelixdornlaravel-rickroll

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/felixdorn-laravel-rickroll/health.svg)

```
[![Health](https://phpackages.com/badges/felixdorn-laravel-rickroll/health.svg)](https://phpackages.com/packages/felixdorn-laravel-rickroll)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3274.9M308](/packages/psalm-plugin-laravel)[watson/active

Laravel helper for recognising the current route, controller and action

3253.6M14](/packages/watson-active)[dragon-code/pretty-routes

Pretty Routes for Laravel

10058.7k4](/packages/dragon-code-pretty-routes)[zonneplan/laravel-module-loader

Module loader for Laravel

24118.4k](/packages/zonneplan-laravel-module-loader)[bjuppa/laravel-blog

Add blog functionality to your Laravel project

483.3k2](/packages/bjuppa-laravel-blog)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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