lukasbableck / contao-frankenphp-worker-plugin
This Contao plugin allows you to run Contao with FrankenPHP worker mode.
Package info
github.com/lukasbableck/contao-frankenphp-worker-plugin
Type:composer-plugin
pkg:composer/lukasbableck/contao-frankenphp-worker-plugin
1.0.0
2026-07-28 16:28 UTC
Requires
- php: ^8.3
- composer-plugin-api: ^2.0
- contao/manager-bundle: ^5.7
- symfony/http-foundation: ^7.4
- symfony/http-kernel: ^7.4
Requires (Dev)
- composer/composer: ^2.0
- friendsofphp/php-cs-fixer: ^3.95
README
This plugin automatically installs a worker.php in your Contao public-dir that can be used to run Contao in FrankenPHP worker mode. The worker mode eliminates the need to initialize the whole framework each time on every request, thus improving performance greatly.
Please note that this has not been tested very thoroughly yet.
Installation
composer require lukasbableck/contao-frankenphp-worker-plugin
Example Caddyfile
localhost root public/ route { @static { file {path} not path *.php } file_server @static @preview path /preview.php* php_server @preview { root public/ } php { root public/ worker { file ./worker.php match * } } }