Download the PHP package manggala/laravel-spotlight without Composer

On this page you can find all versions of the php package manggala/laravel-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 laravel-spotlight

Laravel Spotlight ๐Ÿš€

Latest Stable Version Inertia Support

Laravel Spotlight (manggala/laravel-spotlight) is a production-ready, keyboard-first Command Palette (Cmd+K / Ctrl+K) package designed specifically for Laravel applications powered by Inertia.js and React.


๐Ÿ’ก Why Laravel Spotlight?

In the Laravel ecosystem, popular command palette tools (like Filament or wire-elements/spotlight) are 100% bound to Livewire and Blade. Applications built with Inertia.js were left without a server-driven command palette package.

Laravel Spotlight bridges this gap by introducing a Server-Driven UI (SDUI) engine. You define commands, model search providers, authorization policies, and route actions entirely in PHP. The package automatically injects authorized payloads into Inertia shared props, rendered seamlessly by a high-performance React modal overlay.


๐ŸŒŸ Key Features


๐Ÿ“ฆ Installation

Install the package via Composer:

Run the package installation command to publish configuration and Inertia React component views:

Optionally publish resources manually:


๐Ÿš€ Quick Start

1. Registering Static Navigation Commands

Define application commands in your AppServiceProvider or dedicated Service Provider using the fluent Spotlight Facade:


2. Dynamic Eloquent Model Search Provider

Search across database models fluently with debounced async queries:


3. Role & Gate Authorization

Restrict commands based on user permissions or roles:


4. Mounting Frontend Component in Inertia Layout

Include the <SpotlightModal /> overlay component inside your primary Inertia React layout file (e.g. AuthenticatedLayout.tsx):


โš™๏ธ Configuration Reference

The published configuration file (config/spotlight.php) allows fine-tuning keybindings and search thresholds:


๐Ÿ› ๏ธ Artisan Commands

Command Description
php artisan spotlight:install Interactive wizard to publish configuration and Inertia React component views.
php artisan spotlight:clear Clear cached command indexes and registry stores.
php artisan spotlight:doctor Run diagnostic health check on registered commands, gates, and middleware.

๐Ÿ”— Ecosystem Interoperability

Laravel Spotlight integrates natively with the Manggala Ecosystem:


๐Ÿงช Testing & Code Quality

Run the Pest PHP test suite:

Format code styling with Laravel Pint:

Run static analysis with Larastan / PHPStan (Level 8):


๐Ÿ“œ License

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


All versions of laravel-spotlight with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2 || ^8.3 || ^8.4
illuminate/contracts Version ^10.0 || ^11.0 || ^12.0 || ^13.0
illuminate/support Version ^10.0 || ^11.0 || ^12.0 || ^13.0
illuminate/http Version ^10.0 || ^11.0 || ^12.0 || ^13.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 manggala/laravel-spotlight contains the following files

Loading the files please wait ...