Download the PHP package brilliance/craft-launcher without Composer

On this page you can find all versions of the php package brilliance/craft-launcher. 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 craft-launcher

Craft Launcher Plugin

A universal search launcher for the Craft CMS admin panel that provides quick access to content, settings, and navigation throughout your Craft installation. Think of it as Spotlight for macOS or Command Palette for VS Code, but specifically designed for Craft CMS with intelligent usage tracking.

The launcher showing popular items with smart keyboard shortcuts and launch counts

Features

Core Search & Navigation

Intelligent Usage Tracking

Commerce Integration

Advanced Content Types

Requirements

Installation

Method 1: Via Composer (Recommended)

  1. Navigate to your Craft project:

  2. Install the plugin:

  3. Enable the plugin:

Method 2: Via Control Panel

  1. Navigate to Settings → Plugins in your Craft admin panel
  2. Click the "Plugin Store" button
  3. Search for "Launcher"
  4. Click "Install" next to the Craft Launcher plugin
  5. Follow the on-screen installation instructions

Post-Installation

  1. Set Permissions: Navigate to Settings → Users → User Groups and ensure your user groups have the "Access Launcher" permission
  2. Configure Settings: Visit Settings → Launcher to customize keyboard shortcuts and search behavior
  3. Test It Out: Press Cmd+K (Mac) or Ctrl+K (Windows/Linux) anywhere in the admin panel

Usage Guide

Opening the Launcher

Search Modes

Universal Search Mode (Default)

Just start typing to search across all enabled content types:

Browse Mode

Type * to enter browse mode and explore your content systematically:

  1. *Type ``** - Shows all available content types
  2. Select a content type - Use arrow keys or number keys (1-9) to select
  3. Browse all items - See all entries, users, categories, etc. of that type
  4. Navigate normally - Use Enter or click to open items

Available browse categories:

Launch History System

How It Works

The launcher tracks which items you actually navigate to (not just search for) and builds a personalized usage profile:

Popular Items Display

When you first open the launcher (without typing), you'll see:

Managing Your History

Commerce Integration

If Craft Commerce is installed, the launcher provides enhanced e-commerce search:

Customer Search

Product Search

Order Search

Keyboard Navigation

Key Action
Type anything Start searching
*``** Enter browse mode
↑ ↓ Navigate through results
Enter Open first result (selected result)
Cmd+1 to Cmd+9 Jump to numbered results (configurable modifier)
Esc Close launcher
Cmd+K / Ctrl+K Close launcher (same as open)
Hover + Click X Remove item from history

Note: Result navigation uses modifier keys (default: Cmd+1 through Cmd+9) to avoid conflicts when typing numbers in search queries. The modifier key can be customized in Settings → Launcher.

Search Filters

Click the filter icon in the search box to open a dropdown panel with powerful filtering options:

Toggle Filters

Content Filters

How It Works

Nested Entries

Nested entries (entries that belong to Matrix, Neo, or other nested entry fields) have special handling:

Front-end Launcher

The launcher can also be enabled on the front-end of your website, providing quick access to admin functions while browsing your live site.

Enabling Front-end Access

  1. Navigate to your account preferences: Go to My Account → Launcher in the admin panel
  2. Enable the front-end launcher: Toggle on "Enable Front-end Launcher"
  3. Configure link behavior (optional): Toggle on "Open Front-end Links in New Tab" to keep your current page open when navigating

User account preferences showing front-end launcher options

Using the Front-end Launcher

Once enabled, the launcher works the same way on your front-end as it does in the admin panel:

Front-end Features

Security & Privacy

The front-end launcher includes several security measures:

Full Page Caching Compatibility

The front-end launcher is fully compatible with full-page caching solutions:

How it works: The launcher uses a bootstrap approach where a small script is injected into pages. This script calls an action endpoint (/actions/launcher/bootstrap) to check authorization. Since Craft action endpoints bypass page caches, each user gets their own authorization check even on cached pages.

Filter Storage: On the front-end, search filter preferences are stored in your browser's localStorage rather than on the server. This ensures filters work correctly with cached pages and provides faster performance. A note in the filter panel indicates when filters are stored locally.

Link Behavior Options

Open Front-end Links in New Tab: When enabled, clicking on entries and pages from the launcher will open them in a new tab, keeping the current page open. This is particularly useful when:

Pro Tips

Configuration

Navigate to Settings → Launcher to customize your experience:

Comprehensive settings interface for customizing search behavior and content types

General Settings

Setting Description Default
Keyboard Shortcut Hotkey to open/close launcher Cmd+K / Ctrl+K
Search Debounce Delay Delay before search executes (milliseconds) 300
Maximum Results Number of results to show per content type 10

Result Navigation Shortcuts

Setting Description Default
Modifier Key Key used with numbers for result selection Command (⌘)

Configure how to activate search results:

Launch History Settings

Setting Description Default
Track Launch History Enable intelligent usage tracking Enabled
Max Popular Items Maximum number of popular items to show 10

Control your privacy and usage tracking:

Content Types

Control which types of content appear in search results:

Commerce Settings

If Craft Commerce is installed:

Content Filtering

Fine-tune which content appears in results:

Permissions

The launcher respects all existing Craft permissions with comprehensive checks:

General Permissions

Admin-Only Content

Non-admin users will not see these content types in search results:

Permission-Checked Content

These content types check specific permissions:

Commerce Permissions (if installed)

Admin User Management

Administrators can view and edit other users' launcher preferences:

  1. Navigate to a user's profile page in the admin panel
  2. Click the Rocket Launcher tab (visible for users with launcher permission)
  3. View or modify the user's front-end launcher settings
  4. Click Save to apply changes

This is useful for:

Recent Improvements

Version 1.4.0 Features

Thanks to Brian Hackett for reporting the front-end launcher issues (#16)

Blitz Cache Compatibility Fix

Front-End Action URL Fixes (Fixes #16)

Search Index Utility

A new Search Index Status section has been added to the Rocket Launcher utility (Utilities > Rocket Launcher):

Search Content Requirements

Craft CMS always indexes entry titles and slugs by default. To search content within other fields:

  1. Field Configuration: Each field must have "Use this field's values as search keywords" enabled in its field settings
  2. Index Rebuild: After enabling searchability on a field, run a search index rebuild via the utility or command line:

  3. Verification: Use the new Search Index Utility to verify entries are properly indexed

Version 1.3.0 Features

Gmail-Style Search Filters

Comprehensive Permission System

Admin User Management

Nested Entries Improvements

Version 1.1.0 Features

Enhanced History Tracking

Improved Front-end Experience

Browse Mode Enhancements

Utility Improvements

Developer Experience

Advanced Features

Custom Search Providers

Developers can extend the launcher with custom search providers:

Custom Actions

Register custom actions for search results:

Launch History API

Programmatically interact with launch history:

Plugin Integrations

The Launcher includes an extensible integration system that allows plugins to display contextual information and actions in search results.

Built-in Integrations

Blitz Cache Integration

View Count Integration

Creating Custom Integrations

Third-party plugin developers can register their own integrations to appear in Launcher search results.

Step 1: Create an Integration Class

Step 2: Register Your Integration

In your plugin's init() method:

Integration Data Structure

Available Helper Methods

BaseIntegration provides helpful methods:

Best Practices

  1. Performance: Keep integration logic lightweight - it runs on every search result
  2. Error Handling: Always wrap logic in try/catch and return null on errors
  3. Permissions: Check user permissions before showing sensitive data
  4. Icons: Use simple SVG icons (16x16) for best visual consistency
  5. Actions: Provide confirmation prompts for destructive actions
  6. Status Types:
    • success (green) - Positive states
    • secondary (gray) - Neutral states
    • warning (yellow) - Caution states
    • danger (red) - Error states
    • default (blue) - Information states

Drawer Content Providers

Third-party plugins can register custom drawer content that appears in the launcher's tips and resources drawer. This allows plugins to provide context-aware tips, links, and resources to users.

How It Works

The drawer system allows plugins to contribute content that appears alongside the default Brilliance content. Each provider can register content that adapts based on the current context (e.g., different content for the search tab vs. assistant tab).

Step 1: Register a Drawer Content Provider

In your plugin's init() method:

Content Structure

Context Values

The $context parameter indicates which launcher tab is active:

Priority System

When multiple plugins register drawer providers, they're merged in priority order:

Best Practices

  1. Check if Launcher exists: Wrap registration in class_exists() check
  2. Context-aware content: Provide relevant tips for each context
  3. Concise tips: Keep tips short and actionable (1-2 lines)
  4. Useful links: Provide links to documentation, issues, or reviews
  5. Error handling: Wrap content generation in try/catch blocks
  6. Performance: Keep content generation lightweight (it's called on drawer open)

Example: Context-Aware Content

Removing a Provider

Database Schema

The plugin creates one additional table for launch history tracking:

launcher_user_history

Stores per-user launch history data:

Troubleshooting

Common Issues

Launcher Won't Open

No Search Results

Popular Items Not Showing

Commerce Search Not Working

Browse Mode Not Working

Styling Problems

Debug Mode

To enable detailed logging, add this to your config/general.php:

Check storage/logs/web-[date].log for launcher-specific log entries.

Contributing

We love contributions! Here's how you can help make Craft Launcher even better:

Bug Reports

Found a bug? Please create an issue with:

Feature Requests

Have an idea for a new feature? Open a feature request and tell us:

Pull Requests

Ready to contribute code? We'd love your help!

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Make your changes with clear, descriptive commits
  4. Test thoroughly (include new tests if applicable)
  5. Submit a pull request with a clear description

Development Guidelines

Discussion

Support & Community

License

This plugin is licensed under the MIT License - see the LICENSE.md file for details.

Credits

Developed by Brilliance

Special thanks to:


Made with care for the Craft CMS community


All versions of craft-launcher with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
craftcms/cms Version ^5.0.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 brilliance/craft-launcher contains the following files

Loading the files please wait ...