dunglas / frankenphp

🧟 The modern PHP app server
https://frankenphp.dev
MIT License
7k stars 243 forks source link

[QUESTION] Worker script #760

Closed ezekel closed 7 months ago

ezekel commented 7 months ago

Hi,

Can someone enlighten my mind on this what is Worker script ?

FRANKENPHP_CONFIG="worker /app/path/to/your/worker/script.php"

what is inside on it script.php ?

I am using Laravel what should I put on the script.php ?

please give me examples

Thank you in advance

dunglas commented 7 months ago

If you are using Laravel, use Octane, it provides the worker script that you need: https://frankenphp.dev/docs/laravel/#laravel-octane

ezekel commented 7 months ago

what script is that?

dunglas commented 7 months ago

This one: https://github.com/laravel/octane/blob/2.x/bin/frankenphp-worker.php

It is automatically installed and used by Laravel Octane.

ezekel commented 7 months ago

Thank you