PHP code example of lukasbableck / contao-frankenphp-worker-plugin

1. Go to this page and download the library: Download lukasbableck/contao-frankenphp-worker-plugin library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

lukasbableck / contao-frankenphp-worker-plugin example snippets

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