Download the PHP package justbetter/statamic-detour without Composer

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

Statamic Detour

This Statamic addon provides a flexible redirect management system for your Statamic projects.

Requirements

Features

Installation

You can install this addon via Composer:

Configuration

You can publish the config by running:

You can now find the config file at config/statamic-detour.php.

Storage Driver

The package supports two storage drivers:

File Driver (Default)

Store redirects as YAML files in your content directory. This is ideal for version control and smaller sites.

Or set via environment variable:

Eloquent Driver

Store redirects in the database. This is recommended for larger sites with many redirects for better performance.

Or set via environment variable:

When using the Eloquent driver, run the migrations:

Performance Mode

The package supports two modes for checking redirects:

Basic Mode (Default)

Redirects are checked early in the request lifecycle, before Statamic's routing.

Or set via environment variable:

Performance Mode

Redirects are only checked after Statamic determines a route doesn't exist. This prevents slowing down valid route hits.

Or set via environment variable:

Auto create

Redirects are automatically created whenever an entry's slug is changed. If you change the slug of a parent, this change will also be reflected in its children.

Or set via environment variable:

Query string defaults

Set global defaults for query string handling:

You can also configure these from Tools > Detours > Settings in the Control Panel.

Usage

Creating Redirects

Navigate to Tools > Detours in the Statamic Control Panel to manage your redirects.

Path Redirects

Create simple path-based redirects:

Regex Redirects

Create powerful pattern-based redirects:

Multi-Site Support

When creating a redirect, you can:

This allows you to manage redirects per site in a multi-site Statamic installation.

Storage Considerations

File Driver

Eloquent Driver

Development

When developing this addon, you'll need to build the Control Panel assets. Node.js 22+ is required for the build process:

For hot reloading during development, run npm run dev in a separate terminal.

Quality

To ensure the quality of this package, run the following command:

This will execute three tasks:

  1. Makes sure all tests are passed
  2. Checks for any issues using static code analysis
  3. Checks if the code is correctly formatted

Credits

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

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

License

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


All versions of statamic-detour with dependencies

PHP Build Version
Package Version
Requires statamic/cms Version ^6.3
laravel/framework Version ^12.40|^13.0
php Version ^8.4
spatie/simple-excel Version ^3.8
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 justbetter/statamic-detour contains the following files

Loading the files please wait ...