iperamuna / pretty-routes-extended
Visualise your routes in pretty format with Livewire filters and search.
Installs: 8
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Language:Blade
pkg:composer/iperamuna/pretty-routes-extended
Requires
- php: ^8.2
- calebporzio/sushi: ^2.5
- illuminate/support: ^10.0|^11.0|^12.0
- livewire/livewire: ^3.0|^4.0
Requires (Dev)
- laravel/pint: ^1.0
- orchestra/testbench: ^8.0|^9.0|^10.0
- pestphp/pest: ^2.0|^3.0
- pestphp/pest-plugin-laravel: ^2.0|^3.0
README
Visualise your Laravel routes in a beautiful, interactive, and searchable interface. Built with Livewire and Tailwind CSS for a premium experience.
This package is heavily inspired by and builds upon the excellent work of garygreen/pretty-routes.
Features
- ✨ Premium UI: Modern Tailwind CSS design with high-quality aesthetics.
- 🔍 Real-time Search: Search by URL, Name, or Action with instant debounced results.
- 📂 Prefix Filtering: Hierarchical filtering for route prefixes (e.g.,
admin,api). - 📍 Highlighting: Toggle row highlights to track specific routes while scrolling.
- 📜 Mirrored Scroll: A sticky footer with a synced horizontal scrollbar for easier navigation of long URIs.
- 📊 Statistics: View total and filtered route counts at a glance.
- 🛠 Configurable: Easily toggle debug restrictions, custom URLs, and branding.
Installation
You can install the package via composer:
composer require iperamuna/pretty-routes-extended
You can publish the config file with:
php artisan vendor:publish --tag="pretty-routes-extended-config"
This is the contents of the published config file:
return [ 'url' => env('PRETTY_ROUTES_URL', 'routes'), 'middlewares' => [ 'web', ], 'debug_only' => env('PRETTY_ROUTES_DEBUG_ONLY', true), // ... ];
Usage
Once installed, visit the /routes endpoint (or your custom configured URL) in your browser.
Testing
composer test
❤️ Credits
- Developed with ❤️ by Indunil Peramuna
- Heavily inspired by garygreen/pretty-routes
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
