It's not something new, but it's probably not known well enough: by surfing on any Github repository like f.i. https://github.com/cavo789/blog, you can just press . (the dot key) on your keyboard to start vscode online i.e. see the current repository in vscode.dev.
vscode has recently added a really useful new feature: sticky scroll.
When I started developing for the Joomla CMS (that was 15 years ago, in 2009), one of the things I liked most was the notion of events.
For example An article is about to be posted, An article has been posted, A user has registered, ... i.e. actions that are announced by the CMS and to which you can react.
When An article is about to be displayed is generated, you can have one (or more) pieces of code interact with this event. You can add dynamic content, you can also deny the article to be displayed if certain conditions are not met.
When working with a Docker container, data can be persistent or not. Imagine you're creating a localhost website with Joomla, Wordpress or any other tool (Laravel, Symfony, etc.).
You've perfectly created the various Docker files needed to run the local site, you've run the command
docker compose up --detach to start the containers and now you're busy installing the site. After a few moments, your local site is up and you can start developing its functionalities.
By default, if you haven't taken any precautions, the moment you stop the container (
docker compose down), you'll kill your site, i.e. by default, having not taken care to save your data (your site, your database), everything will be lost and reset the next time you run
docker compose up --detach. Well... Maybe that was your wish (something totally ephemeral); maybe not;
Version updated on November 21, 2023 after a discussion with Alexandre about making his Docker image available on hub.docker.com
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.
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.
Some tips and tricks for your .htaccess file (Apache)
By default, the Linux distribution is installed on your C: drive. If, like me, you have a D: drive with almost nothing on it, it can be really interesting to move Linux on that second drive.