lukasbableck/contao-frankenphp-worker-plugin

This Contao plugin allows you to run Contao with FrankenPHP worker mode.

Maintainers

Package info

github.com/lukasbableck/contao-frankenphp-worker-plugin

Type:composer-plugin

pkg:composer/lukasbableck/contao-frankenphp-worker-plugin

Transparency log

Statistics

Installs: 37

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.0 2026-07-28 16:28 UTC

This package is auto-updated.

Last update: 2026-07-28 16:30:19 UTC


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 *
		}
	}
}