Download the PHP package wezlo/filament-search-spotlight without Composer

On this page you can find all versions of the php package wezlo/filament-search-spotlight. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package filament-search-spotlight

Filament Search Spotlight

A full-screen Spotlight / command-palette search overlay for Filament panels. Opens on ⌘K (configurable), aggregates results from multiple categories (records, resources, pages, actions, plus recent/pinned from localStorage), and composes Filament's built-in GlobalSearchProvider — every resource that already implements getGloballySearchableAttributes() shows up automatically.

Features

Installation

Register the plugin on your panel:

That's it — press ⌘K inside any panel page.

If your panel uses a compiled Tailwind theme (e.g. resources/css/filament/admin/theme.css), make sure it scans the package's views so utility classes are generated:

Then rebuild with npm run build / npm run dev.

Configuration

Publish the config file (optional):

Every option is settable fluently on the plugin or in config/filament-search-spotlight.php. Fluent calls win over config values.

Fluent API

Config file

Actions

Fluent SpotlightAction

Global registry

Call ->register() to add an action to the app-wide registry (available to every panel using the plugin). Typically done in AppServiceProvider::boot():

Plugin-scoped actions

Pass actions directly to the plugin when you only want them on a specific panel, or when you want to override a registry action with the same name:

A plugin-scoped action with the same name as a registry action automatically replaces the registry one in the overlay.

Auto-discovered "Create X" actions

Any resource exposing a create page is automatically surfaced as a Create {Label} action. Disable with ->disableCreateActions() or the disable_create_actions config value.

Adding a custom category

Categories are tiny — implement the Category contract:

Register it by overriding the default category list:

Recent & pinned

Both lists are owned client-side in localStorage under spotlight.recent and spotlight.pinned. Activating a result appends it to recent (deduped, max 10). Nothing is persisted server-side, so there is no database migration to run and no state to clear on logout.

Tests

Feature tests live alongside the consumer app under tests/Feature/FilamentSearchSpotlight/:


All versions of filament-search-spotlight with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
filament/filament Version ^4.0 || ^5.0
spatie/laravel-package-tools Version ^1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package wezlo/filament-search-spotlight contains the following files

Loading the files please wait ...