Download the PHP package moselwal/typo3-config without Composer
On this page you can find all versions of the php package moselwal/typo3-config. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download moselwal/typo3-config
More information about moselwal/typo3-config
Files in moselwal/typo3-config
Download moselwal/typo3-config
More information about moselwal/typo3-config
Files in moselwal/typo3-config
Vendor moselwal
Package typo3-config
Short Description Fluent API to set environment-specific configuration for TYPO3.
License GPL-2.0-or-later
Homepage https://github.com/ohartwig/typo3-config
Package typo3-config
Short Description Fluent API to set environment-specific configuration for TYPO3.
License GPL-2.0-or-later
Homepage https://github.com/ohartwig/typo3-config
Please rate this library. Is it a good library?
Informations about the package typo3-config
TYPO3 Config — Fluent Configuration Library
Fluent PHP API for environment-specific TYPO3 configuration. Provides context-based presets, secure secret management, caching, logging, mailer setup, and TLS/mTLS auto-configuration.
Features
- Context-Based Presets — Auto-configuration for Production, Development, CLI, and Testing environments
- Secret Resolution Cascade — Secure secret loading from
_FILEenv vars →/run/secrets/→getenv()→ fallback - Caching Auto-Configuration — Redis/Valkey (via
moselwal/keyvalue-store), APCu, or file backends - TLS/mTLS Auto-Configuration — Automatic certificate discovery for database and Redis connections
- Mailer Setup — SMTP and Mailpit configuration helpers
- Logging Presets — Context-aware logging configuration
- Image Engine — ImageMagick and GraphicsMagick configuration
- Fluent Interface — Chainable API for readable configuration
- TYPO3 14.x — getestet auf der aktuellen LTS-Linie
Installation
text
Quick Start
In your config/config.php:
Secret Management
Secrets are resolved through a cascading lookup:
- File path from env var (
DB_PASSWORD_FILE) - Default secret file (
/run/secrets/db_password) - Direct env var (
getenv('DB_PASSWORD')) - Fallback parameter (optional)
text
No secrets need to be committed to Git or stored in .env files.
Available Presets
| Method | Description |
|---|---|
applyDefaults() |
Auto-selects preset based on TYPO3 context |
useCliPreset() |
Optimized for CLI calls with debug output |
useDevelopmentPreset() |
Development environment settings |
useProductionPreset() |
Production with APP_ROOT (container) |
useProductionPresetVHost() |
Production with VHost-based setup |
Usage Example
text
TYPO3 Version Compatibility
| TYPO3 Version | Status |
|---|---|
| v11 | Supported |
| v12 | Supported (pagesection cache auto-removed) |
| v13 | Supported (imagesizes cache auto-removed) |
| v14 | Supported |
Architecture
text
- Singleton pattern via
Config::initialize()/Config::get() - Namespace:
Moselwal\→src/(PSR-4) - Late static binding (
new static()) for project-specific extensions
Development
Dependencies
| Package | Type | Purpose |
|---|---|---|
moselwal/keyvalue-store |
Optional | Redis/Valkey cache and session backends |
moselwal/dev |
Dev | Shared QA tooling |
Related
- keyvalue-store — Redis/Valkey integration used by the caching auto-configuration
License
MIT — see LICENSE for details.
All versions of typo3-config with dependencies
PHP Build Version
Package Version
The package moselwal/typo3-config contains the following files
Loading the files please wait ...