---
title: "Environment State Manager"
manual: "Environment State Manager"
version: "main"
permalink: "https://docs.typo3.org/permalink/fgtclb/environment-state-manager:start@main"
source: "Index.rst"
start: true
rendered: "2026-10-17T14:50:33+00:00"
---

# Environment State Manager {#start}

-   *Extension key:* environment_state_manager
-   *Package name:* fgtclb/environment-state-manager
-   *Version:* main
-   *Language:* en
-   *Author:* FGTCLB GmbH
-   *License:*

    This document is published under the
    [Open Content License](https://www.openhub.net/licenses/opl).

-   *Rendered:* Sat, 17 Oct 2026 14:50:33 +0000

---

TYPO3 CMS extension providing an environment builder and a state manager. It
builds and applies a fully featured TYPO3 environment (request, controller
context, TypoScript, language and visibility aspects, …) for a given page and
safely backs up and restores the global state around such an operation.

> [!NOTE]
> Both **frontend** and **backend** environment handling are implemented.
> The API is built around an `ApplicationType`, selecting the matching
> environment builder for the requested type.

This functionality was extracted from `fgtclb/academic-base` into a
dedicated, reusable extension.

Over time there have been multiple extensions that allowed creating the
`TypoScriptFrontendController (TSFE)` but missed all the other handling and
state in various places. They further lacked proper state management and
building when used in FE or BE web-requests and did not return to the
previous state, leaving the context in a populated (broken) state - something
this extension tries to handle more properly across the different TYPO3 versions.

It can be used in tasks, commands, schedulers, frontend requests, backend requests
and also within functional tests to properly build the more global state.

---

**[Introduction](https://docs.typo3.org/permalink/fgtclb/environment-state-manager:introduction@main)**

Learn what the extension provides and when to use it.

**[Administration](https://docs.typo3.org/permalink/fgtclb/environment-state-manager:administration@main)**

Install and update the extension in your TYPO3 installation.

**[Developer Corner](https://docs.typo3.org/permalink/fgtclb/environment-state-manager:developer@main)**

Technical description and code examples for the environment builder
and the state manager.

**[Contribution](https://docs.typo3.org/permalink/fgtclb/environment-state-manager:contribution@main)**

Set up a development environment, run the tests and follow the commit
message rules.

**[Changelog](https://docs.typo3.org/permalink/fgtclb/environment-state-manager:changelog@main)**

Overview of the changes per released version.
