Skip to main content

FrankenPHP, a modern application server for PHP

4 min read
Christophe
Markdown, WSL and Docker lover ~ PHP developer ~ Insatiable curious.

FrankenPHP

Version updated on November 21, 2023 after a discussion with Alexandre about making his Docker image available on hub.docker.com

Based on their documentation, FrankenPHP is 3.5 faster than PHP FPM.

It is still fairly young for use on production sites, but because it's so promising, it's certainly worth playing with when developing locally.

Alexandre Elis茅 has written a script to use FrankenPHP with Joomla. You can find the source here: https://github.com/alexandreelise/frankenphp-joomla.

Share data between your running Docker container and your computer

4 min read
Christophe
Markdown, WSL and Docker lover ~ PHP developer ~ Insatiable curious.

Share data between your running Docker container and your computer

If you don't have Docker yet, please consult my Install Docker and play with PHP post first.

When running Docker without specifying a volume, everything done during the execution of Docker is done in memory. In other words: if the PHP script you run from Docker creates folders or files, these will never be created on your disk. They will be created exclusively in memory.

Open your Linux folder in Windows Explorer

2 min read
Christophe
Markdown, WSL and Docker lover ~ PHP developer ~ Insatiable curious.

Open your Linux folder in Windows Explorer

Did you know it is possible to use the Windows Explorer program and navigate on your Linux filesystem?

An easy way to open your current folder in Windows Explorer is to call the explorer.exe binary.

So, f.i., in your Linux console, open any existing folder like cd ~/repositories/blog and then, just run explorer.exe ..

Opening a RDP connection to the Linux local instance

3 min read
Christophe
Markdown, WSL and Docker lover ~ PHP developer ~ Insatiable curious.

Opening a RDP connection to the Linux local instance

https://www.nextofwindows.com/how-to-enable-wsl2-ubuntu-gui-and-use-rdp-to-remote https://medium.com/@riley.kao/wsl2-ubuntu20-04-gui-remote-desktop-connection-rdp-2bbd21d2fa71

When WSLg is enabled, it's possible to access to the graphical user interface of your Linux distribution (in my case, it's Ubuntu).

If you don't have xrdp yet, you can install it by running:

sudo apt update && sudo apt -y upgrade
sudo apt-get install -y xrdp

The easiest way to run a PHP script / website

One min read
Christophe
Markdown, WSL and Docker lover ~ PHP developer ~ Insatiable curious.

The easiest way to run a PHP script / website

The situation: you wish to run a piece of standard PHP code (no dependency) like the one below:

<?php

echo "<h2>Incorrect, silent bug</h2>";

print_r(json_decode(utf8_decode("Ipso lorem"), true));

echo "<h2>Incorrect, we got an exception</h2>";

print_r(json_decode(utf8_decode("Ipso lorem"), true, 512, JSON_THROW_ON_ERROR));