PHP code example of enthusiast / worker-template

1. Go to this page and download the library: Download enthusiast/worker-template 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/ */

    

enthusiast / worker-template example snippets


(new \Enthusiast\WorkerTemplate\SharedEnv('API_'))->apply();
(new \Enthusiast\WorkerTemplate\SharedEnv('WORKER_INTEGRATION_'))->apply();
env
OTEL_PHP_PSR3_SPAN_EVENTS=true
OTEL_PHP_PSR3_SPAN_EVENTS_LEVEL=info