https://github.com/twohreichel/twoh_base
This extension allows you to move the TYPO3 context into separate files instead of working with the AdditionalConfiguration.php.
https://github.com/twohreichel/twoh_base
backend easy php8 typo3 typo3-cms-extension typo3-extension typoscript webdevelopment
Last synced: 2 months ago
JSON representation
This extension allows you to move the TYPO3 context into separate files instead of working with the AdditionalConfiguration.php.
- Host: GitHub
- URL: https://github.com/twohreichel/twoh_base
- Owner: twohreichel
- Created: 2025-06-09T04:19:14.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-12-18T15:29:05.000Z (3 months ago)
- Last Synced: 2025-12-21T19:49:57.800Z (3 months ago)
- Topics: backend, easy, php8, typo3, typo3-cms-extension, typo3-extension, typoscript, webdevelopment
- Language: PHP
- Homepage:
- Size: 37.1 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TWOH Base
[](https://get.typo3.org/version/13)
[](https://www.php.net/)
[](https://www.gnu.org/licenses/gpl-2.0)
> This extension allows you to move the TYPO3 context into separate files instead of working with the `AdditionalConfiguration.php`.
---
## ๐ Features
- **Context-based Configuration** โ Organize TYPO3 settings per environment (Development, Production, etc.)
- **Environment Variables Support** โ Includes `.env` support for TYPO3's `AdditionalConfiguration.php`
- **Clean Project Setup** โ Provides all needed files for setting up a TYPO3 project
---
## โ๏ธ Requirements
| Requirement | Version |
|-------------|---------|
| PHP | ^8.2 |
| Composer | ^2.0 |
| TYPO3 | ^13.4 |
---
## ๐ Installation
### Via Composer (recommended)
```bash
composer require twoh/twoh_base
```
### Manual Installation
1. Download the extension
2. Upload to `typo3conf/ext/twoh_base`
3. Activate in TYPO3 Extension Manager
---
## ๐ Usage
### Configuration Structure
Create a `config/` directory in your project root with environment-specific configuration files:
```
project-root/
โโโ config/
โ โโโ default.php # Base configuration (loaded first)
โ โโโ development.php # Development environment
โ โโโ production.php # Production environment
โ โโโ production.staging.php # Production/Staging context
```
### Example Configuration File
```php
[
'Connections' => [
'Default' => [
'host' => 'localhost',
'dbname' => 'typo3',
],
],
],
];
```
### Loading Configuration
Add to your `AdditionalConfiguration.php`:
```php
load();
```
---
## ๐งช Development
### Running Tests
```bash
composer test:unit
```
### Code Style
```bash
# Check code style
composer cs:check
# Fix code style
composer cs:fix
```
---
## ๐ License
This project is licensed under the GPL-2.0-or-later License โ see the [LICENSE](LICENSE) file for details.
---
## ๐ฅ Authors
- **Andreas Reichel** โ [a.reichel91@outlook.com](mailto:a.reichel91@outlook.com)
- **Igor Smertin** โ [igor.smertin@web.de](mailto:igor.smertin@web.de)
---
## ๐ Support This Project
If you find this extension helpful, please consider supporting its development! Your sponsorship helps maintain and improve this project.
[](https://github.com/sponsors/twohreichel)
[**Become a Sponsor**](https://github.com/sponsors/twohreichel) โ Every contribution helps us dedicate more time to building great TYPO3 extensions and keeping them up-to-date!
---
## ๐ Links
- [GitHub Repository](https://github.com/twohreichel/twoh_base)
- [Issue Tracker](https://github.com/twohreichel/twoh_base/issues)
- [Documentation](https://docs.typo3.org/p/twoh/twoh_base/main/en-us/)