SymfonyWorld Online 2021 Winter Edition December 9 – 10, 2021 100% Online +20 talks and workshops

Local Web Server Reloaded for Symfony Apps

Update: you can now read the official documentation for the Symfony local web server.

The new Symfony binary introduced as part of SymfonyCloud will be a key piece of the Symfony developer experience. During his SymfonyCon Lisbon 2018 keynote, Fabien unveiled more of its amazing new features.

Symfony's binary provides a local web server that supports HTTP/2, uses PHP-FPM when possible and generates TLS certificates for local apps automatically. The new server supports multiple PHP versions, different PHP config per directory, aggregates all logs for easy debugging, allows to configure local domain names, etc.

Best of all is that it works on Linux, macOS and Windows, so you can download the Symfony binary and start using it right away. If you find any error, please create an issue on the symfony/cli repo.

Check out Fabien's presentation to know all the details:

Stay tuned for more feature announcements and register for early access on SymfonyCloud.

Help the Symfony project!

As with any Open-Source project, contributing code or documentation is the most common way to help, but we also have a wide range of sponsoring opportunities.


Great job 👍
I would love to see a docker integration
Is the local webserver open source and where can I find the sources?
@Christian I'm afraid it's not open sourced. My understanding is that there are no plans to open source it.
@Christian It is not open-source.
Okay, this is disqualifier for me :-(
But thanks for you response.
Thank you, works great :)
Is there any way to add the PHP binaries installed by MAMP to the list of available binaries?
I'm looking for a way to use PHP 7.0 as we still have some projects running on it. I can't install it using homebrew as it was removed from their repo a few days ago.
I'm currently playing around with it on Windows 10. The local webserver works fine and the speed seems to be the same as bin/console server:run (which I expected). Having the benefit to use it on all our projects seems great.

I stumbled accross two problems so far:
1.) "symfony local:server:ca:install" didn't work for Firefox (closed the browser before running the command), after adding the cert by myself everything worked fine. It worked in Chrome / Edge without any issues.
2.) How do I add a new PHP Version? "symfony local:php:list" only lists one version (I have two running, 7.2 (was installed via xampp) + 7.3 (downloaded the zip from I edited the file .symfony/php_versions.json but it updates everytime I run the symfony command
Are there some benchmarks with other development solutions (MAMP, WAMP ...) ?
@Ramon @Benjamin I've notified internally about your issues. If you have other issues, please create new issues in this public repository: Thanks!
Awesome :)
Will it be possible that in future, it could run same as php-pm? I can't install it anymore but when I did use it, it was pretty amazing experience.

It does require immutable services but I don't think it is a big problem.
Really nice!

It even works with other php projects (e.g. Drupal 8) out of the box!
How do I add a new PHP Version? To the list of local:php:list ?
Ok i found all necessary infos at GitHub issue page.

Comments are closed.

To ensure that comments stay relevant, they are closed for old posts.