Download the PHP package otatechie/laravel-spotlight without Composer

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

A lighthouse-style diagnostics tool that scans Laravel applications for performance, security, and architecture issues. Built with a modular rule system that makes it easy to extend and customize.

Latest Version on Packagist GitHub Tests Code Style Total Downloads

What is Spotlight?

Spotlight is NOT:

Spotlight IS:

Laravel Spotlight helps you identify and fix issues in your Laravel application before they become problems. It scans your application for:

Philosophy

Spotlight provides guidance, not enforcement. No shaming, no judgment.

Laravel Spotlight is a friendly mentor, not an angry linter. We help you improve your code with gentle suggestions, not shame or rigid rules.

See Why Spotlight? to see how it compares to other tools.

Features

Installation

You can install the package via composer:

You can publish the config file with:

The config file lets you:

See the configuration documentation for details.

Usage

Basic Scanning

Run a full scan of your application:

Scan Specific Categories

Scan only performance issues:

Scan multiple categories:

Get JSON Output

Filter by Severity

Only show critical issues:

Exit Codes for CI/CD

Spotlight uses exit codes for CI/CD integration:

Exit Code Mapping:

Usage Examples:

GitHub Actions Example:

List Available Rules

See all available rules:

Get details about a specific rule:

Create Custom Rules

Generate a new rule class:

This creates a rule class with proper structure and auto-registers it.

Programmatic Usage

Rule Types & Severity

Spotlight uses a two-dimensional classification system:

Rule Types

Severity Levels

Spotlight uses 4 severity levels with numeric weights for scoring:

Level Weight Purpose
critical 100 Production-breaking / security risk
high 70 Serious performance or stability issue
medium 40 Performance issues or config problems
low 10 Minor improvement / suggestion

Health Score: Spotlight calculates a health score (0-100%) based on severity weights, giving you a quick overview of your application's status.

Category-Based Defaults: If a rule doesn't specify severity, it inherits from its category:

All rules can be disabled in config/spotlight.php if they don't apply to your project.

Built-in Rules

Performance Rules

Security Rules

Architecture Rules

Creating Custom Rules

Want to add your own rules? It's easy. Check out the Creating Rules Guide for the full walkthrough.

Quick Example

Here's how simple it is:

Register it in config/spotlight.php:

Configuration

Publish the config file:

Key configuration options:

See Examples & Configuration for more details.

Changelog

Please see CHANGELOG for more information on what has changed recently.

Documentation

Contributing

Contributions are welcome! Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

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

Laravel Trademark Disclaimer

Laravel is a trademark of Taylor Otwell. This package is not officially associated with Laravel or Taylor Otwell. The "laravel-" prefix in the package name is used to indicate compatibility with the Laravel framework and follows community naming conventions.


All versions of laravel-spotlight with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
spatie/laravel-package-tools Version ^1.16
illuminate/contracts Version ^11.0||^12.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 otatechie/laravel-spotlight contains the following files

Loading the files please wait ...