bartacus / platformsh-bundle
Support bundle for using Upsun together with TYPO3
Package info
github.com/Bartacus/BartacusPlatformshBundle
Type:typo3-cms-extension
pkg:composer/bartacus/platformsh-bundle
6.0.0
2026-07-12 19:18 UTC
Requires
- php: ^8.4
- composer-runtime-api: ^2.1
- ext-mbstring: *
- platformsh/config-reader: ^2.4
- typo3/cms-core: ^14.3
This package is auto-updated.
Last update: 2026-07-12 19:19:08 UTC
README
This bundle provides some helper functionality if you use TYPO3 on the Upsun cloud hosting platform.
Usage
In your config/system/additional.php, you can use the UpsunConfigLoader to automatically configure your TYPO3 instance:
use Bartacus\Bundle\PlatformshBundle\UpsunConfigLoader; $upsunLoader = new UpsunConfigLoader(); $upsunLoader->applyDatabaseConfiguration('database'); $upsunLoader->applyRedisCaching('rediscache'); $upsunLoader->applySolrService('solrsearch'); $upsunLoader->mapRoutes(['main']);
Methods
applyDatabaseConfiguration(string $relationshipName = 'database'): Maps the database relationship to$GLOBALS['TYPO3_CONF_VARS']['DB']['Connections']['Default'].applyRedisCaching(string $relationshipName = 'rediscache'): Sets up Redis for common TYPO3 cache groups (pages,pagesection,hash,extbase).mapRoutes(array $siteIdentifiers = ['main']): Maps Upsun routes to environment variables (e.g.,TYPO3_BASE_DOMAIN_MAIN).