Download the PHP package akira/laravel-spectra without Composer

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

Spectra API Inspector

Illuminate your API — Interactive API inspector for Laravel 12 with Inertia + React.

Latest Version on Packagist GitHub Tests Action Status Total Downloads

Spectra is a powerful, developer-focused API inspector built exclusively for Laravel 12 applications. It provides an embedded, interactive console accessible at /spectra that helps you explore, test, and debug your API endpoints during development.

Features

Requirements

Installation

Install the package via Composer:

Install and publish configuration:

This will publish the configuration file to config/spectra.php.

Configuration

The configuration file provides comprehensive control over Spectra's behavior:

Usage

Accessing Spectra

Once installed, visit /spectra in your browser when running in a local environment. You must be authenticated and have the use-spectra permission.

Gate Configuration

By default, Spectra defines a use-spectra gate that checks if the user has a developer role. You can customize this in your AuthServiceProvider:

Authentication Modes

Spectra supports four authentication modes for executing requests:

  1. Current User: Execute requests as the currently authenticated user
  2. Impersonate: Execute requests as a different user (requires use-spectra gate approval)
  3. Bearer Token: Provide a Bearer token for authentication
  4. Basic Auth: Use username/password authentication

Working with Schemas

Spectra automatically generates JSON Schema (2020-12) from your FormRequest validation rules. Supported validation rules include:

Request Collections

Save frequently used requests as collections:

  1. Configure your request (endpoint, parameters, auth mode)
  2. Click "Save" in the Collections panel
  3. Give it a name
  4. Load it anytime with one click

Export/import collections as JSON for sharing with your team.

Security

Spectra is designed with security as a top priority:

Production Safety

Spectra will automatically return a 404 error when:

Never enable Spectra in production environments.

Extensibility

Service Container Bindings

All Spectra services are bound to the container and can be extended or replaced:

Custom Schema Builders

Override the schema builder to add custom rule conversions:

Testing

Run the test suite:

Run static analysis:

Format code:

CI/CD

Spectra includes GitHub Actions workflows for:

Changelog

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

Contributing

Contributions are welcome! Please follow the conventional commits specification for all commits.

Security Vulnerabilities

If you discover a security vulnerability, please email [email protected]. All security vulnerabilities will be promptly addressed.

Credits

License

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


All versions of laravel-spectra with dependencies

PHP Build Version
Package Version
Requires php Version ^8.4
illuminate/contracts Version ^12.0
inertiajs/inertia-laravel Version ^2.0
spatie/laravel-package-tools Version ^1.16
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 akira/laravel-spectra contains the following files

Loading the files please wait ...