Download the PHP package georgringer/redirect-generator without Composer

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

TYPO3 Extension redirect_generator

CLI tools and backend modules to bulk-import and export TYPO3 redirects from/to CSV.

Target URLs are automatically resolved to t3://page?uid=X links via TYPO3's routing - no manual page ID lookup needed, including error check.

Requirements

Installation

Configuration

Extension configuration options (Admin → Settings → Extension Configuration):

Option Description
notification_email Comma-separated list of addresses for import/export notifications
notification_level 0 = errors only · 1 = + warnings · 2 = + info
allow_empty_import_file If true, an empty CSV file silently skips the import instead of throwing an error

CLI Commands

Add a single redirect

The target must be a full URL of a page on this TYPO3 instance. It is resolved to the corresponding page ID automatically.

Import redirects from CSV

CSV format — semicolon-delimited, first row must be the header:

Column Required Description
source yes Source path (e.g. /old-page)
target yes Full target URL. Internal pages are resolved to t3://page?uid=X. Set external=1 to skip resolution.
status_code no HTTP status code. Falls back to 307 if omitted or invalid.
external no 1 = store target URL as-is without page lookup

Set a target value of x to skip a row.

Options:

Option Description
--dry-run Simulate import without writing to the database
--delimiter CSV delimiter: ; (default), , or tab
--external-domains Comma-separated list of domains always treated as external
--delete-file Delete the CSV file after import

This command is schedulable (TYPO3 Scheduler → Execute console commands).

Export redirects to CSV

--transform-target-url resolves stored t3://page?uid=X links back to readable URLs.

This command is schedulable.

Backend UI — redirect_generator_ui

The companion extension georgringer/redirect-generator-ui adds a full backend module under Link Management with import and export forms — no CLI access required.

More information: ringer.it/extensions/redirect-generator-ui


Module in the backend navigation

Export — filter by type, resolve target URLs

Import — live result with per-row feedback

Import — conflicts and errors shown inline

Features:

PSR-14 Events

Two events are dispatched from RedirectRepository::addRedirect() (not fired during dry runs):

BeforeRedirectAddedEvent

Fired just before the database insert. Listeners may modify source URL, target URL, or the Configuration object.

AfterRedirectAddedEvent

Fired after the insert. Provides sourceUrl, targetUrl, configuration, and the new uid.

Register listeners in your extension's Services.yaml:


All versions of redirect-generator with dependencies

PHP Build Version
Package Version
Requires typo3/cms-core Version ^13.4.20 || ^14.3
typo3/cms-redirects Version ^13.4.20 || ^14.3
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 georgringer/redirect-generator contains the following files

Loading the files please wait ...