Local Web Server Reloaded for Symfony Apps
December 10, 2018 • Published by Javier Eguiluz
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.
Comments are closed.
To ensure that comments stay relevant, they are closed for old posts.
I would love to see a docker integration
But thanks for you response.
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 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 php.net)). I edited the file .symfony/php_versions.json but it updates everytime I run the symfony command
It does require immutable services but I don't think it is a big problem.
It even works with other php projects (e.g. Drupal 8) out of the box!