Download the PHP package tallieutallieu/dry-redirects without Composer

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

Dry Redirects

A URL redirection package for the Dry PHP framework. This package allows you to manage redirects through an admin interface and automatically handle URL redirections with parameter support.

Features

Installation

Via Composer

Service Provider Registration

Add the service provider to your application:

Database Migration

Run the database migrations to create the necessary tables:

Usage

Creating Redirects

Navigate to the admin interface at /admin/redirects and create redirects with:

  1. Source Path: The URL pattern to match (e.g., /old-path or /product/{id})
  2. Target Path: The destination URL (e.g., /new-path or /products/{id})
  3. Status Code: 301 (permanent), 302 (temporary), or 404 (not found)
  4. Active: Enable/disable the redirect

Parameter Substitution

You can use parameters in your redirects by enclosing them in curly braces:

When a user visits /product/123, they will be redirected to /products/123.

Redirect Logs

The system automatically logs all redirect hits. You can view these logs in the admin interface at /admin/redirects/redirect-logs.

Under the Hood

The package works by:

  1. Loading all active redirects from the database at application boot
  2. Registering dynamic routes for each redirect
  3. When a redirect is triggered:
    • Parameters are extracted and substituted
    • A RouteWasHit event is dispatched (for logging)
    • The user is redirected to the target URL with the appropriate status code

Administration

The admin interface provides two main sections:

  1. Redirects: Create, edit, and delete redirects
  2. Redirect Logs: View and manage redirect hit logs

Requirements

License

This package is proprietary software developed by Tallieu & Tallieu.


All versions of dry-redirects with dependencies

PHP Build Version
Package Version
Requires tallieutallieu/dry Version *
tallieutallieu/oak Version *
tallieutallieu/dry-dbi Version *
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 tallieutallieu/dry-redirects contains the following files

Loading the files please wait ....