Download the PHP package dvictor357/laravel-omnisearch without Composer
On this page you can find all versions of the php package dvictor357/laravel-omnisearch. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download dvictor357/laravel-omnisearch
More information about dvictor357/laravel-omnisearch
Files in dvictor357/laravel-omnisearch
Package laravel-omnisearch
Short Description A global command palette (Cmd+K) for Laravel applications. Search models, navigate routes, and execute commands from anywhere.
License MIT
Informations about the package laravel-omnisearch
Laravel OmniSearch
A global command palette (Cmd+K / Ctrl+K) for Laravel 11/12 applications. Search models, navigate routes, execute commands, and more from anywhere in your app.
Features
Core Features
- ๐ Global Search โ Search across models, routes, and custom sources
- โจ๏ธ Keyboard-First โ Full keyboard navigation (
โ,โ,Enter,Esc,Tab) - ๐จ Premium UI โ Glassmorphism design with smooth animations
- ๐ Extensible โ Easy to add custom search sources
- โก Livewire 3 โ Real-time search powered by Livewire
- ๐ Relevance Scoring โ Results ranked by relevance, not just source order
UX Enhancements
- ๐ Recent Searches โ Stores and displays your search history
- ๐ Copy to Clipboard โ Dedicated copy action type with toast notifications
- ๐ฏ Multiple Action Types โ Navigate, copy, or open modals
- ๐ผ๏ธ Dynamic Icons โ Built-in icon system with 15+ icons
- ๐ญ Theming โ CSS variables for easy customization
- โฟ Accessible โ Full ARIA support and screen reader compatible
Developer Experience
- ๐ง Artisan Commands โ
omnisearch:install,omnisearch:make-source - ๐ก Events โ Hook into search lifecycle with events
- ๐ i18n Ready โ Translations support out of the box
- ๐งช Well Tested โ Comprehensive test coverage
Requirements
- PHP 8.2+
- Laravel 11.x or 12.x
- Livewire 3.x
Installation
Quick Setup
Run the installer command:
Or publish assets manually:
Add the component to your main layout (before </body>):
Configuration
Keyboard Shortcuts
Searchable Models
Configure which models should be searchable in config/omnisearch.php:
Route Filtering
Control which routes appear in search:
UI Customization
Search Settings
Creating Custom Sources
Basic Source
Implement the SearchSource interface:
Command Source with Dependencies
Use the CommandSource base class for commands with dependencies:
Copy Action Result
Create results that copy text to clipboard:
Register in config/omnisearch.php:
Events
OmniSearch fires events you can listen to:
Artisan Commands
Available Icons
| Icon | Name | Description |
|---|---|---|
| ๐ | search |
Search icon |
| ๐ค | user |
User/profile |
| ๐ | link |
Links/routes |
| ๐ | copy |
Copy action |
| โ | check |
Success/check |
| ๐ | file |
File/document |
| ๐๏ธ | database |
Database/models |
| โ๏ธ | settings |
Settings |
| โจ | sparkles |
AI/featured |
| ๐ | expand |
Modal/action |
| ๐ | clock |
History/time |
Contributing
Contributions are welcome! Please see CONTRIBUTING.md for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
License
Laravel OmniSearch is open-sourced software licensed under the MIT license.