Demo: Diese Website ist eine Demo für fluid – keine offizielle Website von REDAXO. Operated by KLXM Crossmedia

Technology

The foundation of REDAXO 6

What is in the 6.x branch of redaxo/core – and how a project comes together.

Process

From an empty folder to a website

  1. Step 1

    Step 1: composer create-project

    The project skeleton redaxo/project pulls in the core as a dependency.

  2. Step 2

    Step 2: .env

    Database (DATABASE_URL), mode (dev, live, hardened) and name of the installation.

  3. Step 3

    Step 3: console setup

    Setup including the admin account – without a browser, too.

  4. Step 4

    Step 4: console migrate

    After every update: bring the database in line with core, AddOns and project.

The key components

Namespaces instead of rex_ classes

All core classes live under Redaxo\Core\… – such as Redaxo\Core\Content\Article or Redaxo\Core\Database\Sql. The database class has typed getters like getIntValue().

Modules and templates as PHP classes

A module extends Module and carries the attribute #[AsModule('key', 'Name')], with the methods input() and output(). Templates extend Template, render themselves and define which modules are allowed in which content section. REDAXO finds the classes automatically.

AddOns are Composer packages

A package of type redaxo-addon is installed and active – no extra switch. It describes its tables in install(); that runs on every console migrate and must therefore be repeatable. One-off steps are migrations with their own log.

Extension points

Extensions still hook in via extension points – partly as classes of their own, such as ArticleContentUpdated for every change to content.

Symfony components

Console, mailer, HTTP client, HTML sanitizer, Dotenv and Runtime come from Symfony 8 – proven components instead of home-grown code.

Questions

Frequently asked questions about REDAXO 6

Is REDAXO 6 finished yet?

No. REDAXO 6 is being built in the 6.x branch of redaxo/core. For running projects, REDAXO 5 is the maintained branch.

Which PHP version do I need?

REDAXO 6 requires PHP 8.5.

Where do modules and templates live?

As PHP classes in the project (or in AddOns) – no longer as code in the database. So they can be versioned, checked and deployed like any other code.

Try it

This site is built with REDAXO 6 and fluid.

Sign in, tap “Edit” – and change every text, every image and the whole design right here.