Download the PHP package pagemachine/typo3-flat-urls without Composer

On this page you can find all versions of the php package pagemachine/typo3-flat-urls. 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 typo3-flat-urls

Flat URLs CI

Flat URLs (like Stack Overflow) for TYPO3

Installation

This extension is installable from various sources:

  1. Via Composer:

    composer require pagemachine/typo3-flat-urls
  2. From the TYPO3 Extension Repository
  3. From Github

Purpose

The purpose of this extension is to enforce so called "flat URLs" throughout the TYPO3 frontend. Thus instead of my/deeply/nested/page/ you will always get URLs like 10/page/ (thus page UID and title), no matter the actual page hierarchy managed in the backend.

Page translations will use the same UID as their original page but with translated titles. Thus you need to make sure that the language parameter (_language) is part of the URL to avoid duplicate URLs with multiple translations.

For flat URLs this extension manages the slugs of pages, thus these are not editable anymore. Whenever a page is edited the slugs are updated automatically so they stay in sync with their related fields (title by default). If a page slug changes, a redirect is added automatically. Conflicting redirects when changing slugs back and forth are removed to ensure pages are always accessible.

Similar to Stack Overflow pages requested only by page UID will be redirected to their full URL. This means that e.g. https://example.org/10/ redirects to https://example.org/10/page/. This also works for translations.

Command

If you have existing pages when adding this extension or if you want to ensure a clean state you can run the slugs:update CLI command. It will update the slugs of all pages and page translations.

Testing

All tests can be executed with the shipped Docker Compose definition:

docker compose run --rm app composer build

All versions of typo3-flat-urls with dependencies

PHP Build Version
Package Version
Requires php Version ^8.0
doctrine/dbal Version ^2.0 || ^3.0
psr/http-message Version ^1.0 || ^2.0
psr/http-server-handler Version ^1.0
psr/http-server-middleware Version ^1.0
psr/log Version ^1.0 || ^2.0 || ^3.0
symfony/console Version ^5.4 || ^6.4
typo3/cms-backend Version ^11.5 || ^12.4
typo3/cms-core Version ^11.5 || ^12.4
typo3/cms-extbase Version ^11.5 || ^12.4
typo3/cms-fluid Version ^11.5 || ^12.4
typo3/cms-frontend Version ^11.5 || ^12.4
typo3/cms-redirects Version ^11.5.7 || ^12.4
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 pagemachine/typo3-flat-urls contains the following files

Loading the files please wait ....