PHPackages                             b13/typo3-config - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. b13/typo3-config

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

b13/typo3-config
================

Fluent API to set environment-specific configuration for TYPO3

0.2.8(4mo ago)1758.5k—0.4%3[2 issues](https://github.com/b13/typo3-config/issues)GPL-2.0+PHPPHP ^8.0

Since Nov 2Pushed 4mo ago7 watchersCompare

[ Source](https://github.com/b13/typo3-config)[ Packagist](https://packagist.org/packages/b13/typo3-config)[ RSS](/packages/b13-typo3-config/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (2)Versions (24)Used By (0)

Manage TYPO3 System-Wide Configuration
======================================

[](#manage-typo3-system-wide-configuration)

> TLDR: Don't repeat yourself.

At b13 we run similar code and site-specific functionality based on the actual environment (development / production context). For this, we usually have a list of default "best practice" settings which we usually copy from one project to the next.

This small library ships with a single PHP class which makes our life a bit easier when setting global `$TYPO3_CONF_VARS` settings, which usually takes place in LocalConfiguration, AdditionalConfiguration and the extensions' `ext_localconf.php` files.

### Note using TYPO3 v12

[](#note-using-typo3-v12)

The configuration files LocalConfiguration and AdditionalConfiguration have been moved and renamed, see [Configuration files](https://docs.typo3.org/m/typo3/reference-coreapi/main/en-us/Configuration/ConfigurationFiles.html)

### Reason 1: We want context-dependent config files

[](#reason-1-we-want-context-dependent-config-files)

With our configuration class, TYPO3's "AdditionalConfiguration" (located in :file:`typo3conf/AdditionalConfiguration.php`) just looks like this:

```
