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
Requires
- php: ^8.0|^8.1
- laravel/framework: ^8.0|^9.0
Requires (Dev)
- phpunit/phpunit: 9.5.19
This package is auto-updated.
Last update: 2025-12-29 03:47:20 UTC
README
Stats:
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.