waryor/desensitize

A Laravel library for desensitizing routes.

Installs: 29

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 1

Forks: 1

Open Issues: 1

pkg:composer/waryor/desensitize

v0.0.2 2022-03-29 20:44 UTC

This package is auto-updated.

Last update: 2025-12-29 03:47:20 UTC


README

Stats:

Packagist Stars

Tests:

Tests

Desensitize

The package provides an easy way to desensitize your routes in your Laravel application. In short, Desensitize makes your routes case-insensitive, so you can access any of your routes whether they are lowercase, uppercase, or both.

Installation

composer require waryor/desensitize

Usage

Register the app in \bootstrap\app.php and change the Applocation namespace to Waryor\Desensitize\Foundation\ like so:

$app = new Waryor\Desensitize\Foundation\Application(
    $_ENV['APP_BASE_PATH'] ?? dirname(__DIR__)
);

To use this package simply add the following line to your boot method in your app/Providers/RouteServiceProvider.php file:

Desensitize::initialize();

If you want to desensitize your routes including a sub-folder, you can do so by passing the sub-folder to the Desensitize::initialize() method:

Desensitize::initialize("/sub-folder");

Credits

License

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