# Slim 4 + FrankenPHP + worker mode

**URL:** <https://discourse.slimframework.com/t/slim-4-frankenphp-worker-mode/5813>\
**Category:** Questions\
**Created:** [February 14, 2024, 2:48pm UTC](https://discourse.slimframework.com/t/slim-4-frankenphp-worker-mode/5813 "2024-02-14T14:48:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![artello](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.slimframework.com/artello/32/1266_2.png) [@artello](https://discourse.slimframework.com/u/artello)\
**Post date:** [February 14, 2024, 2:48pm UTC](https://discourse.slimframework.com/t/slim-4-frankenphp-worker-mode/5813/1 "2024-02-14T14:48:36Z")

</div>

Hey,

Just curious if anyone tried to use a Slim4 powered app with FrankenPHP Docker images and their worker mode ([FrankenPHP | Using FrankenPHP Workers](https://frankenphp.dev/docs/worker/)) specifically?

I believe some code modification would be required for this, any ideas?

---

<div class="post-metadata">

**Author:** ![stef157](https://avatars.discourse-cdn.com/v4/letter/s/df788c/32.png) [@stef157](https://discourse.slimframework.com/u/stef157)\
**Post date:** [July 1, 2024, 10:04am UTC](https://discourse.slimframework.com/t/slim-4-frankenphp-worker-mode/5813/2 "2024-07-01T10:04:12Z")

</div>

Hi !  
Since your last message, have you tried frankenPhp ? Seem a good project.

Thanks

---

<div class="post-metadata">

**Author:** ![laylacollins](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.slimframework.com/laylacollins/32/1638_2.png) [@laylacollins](https://discourse.slimframework.com/u/laylacollins)\
**Post date:** [July 10, 2024, 4:15pm UTC](https://discourse.slimframework.com/t/slim-4-frankenphp-worker-mode/5813/3 "2024-07-10T16:15:48Z")

</div>

Hello,  
I think using a Slim4 powered app with FrankenPHP Docker images and their worker mode is possible but may require some code modifications. Make sure that your Slim4 app can handle worker processes correctly. This involves adjusting your app’s routing and middleware to be compatible with the worker environment.
