Hacker News new | ask | show | jobs
by coderoffortune 1247 days ago
Hi, curious to try new version of PHP. Do you know some good tutorial to setup development environment?
5 comments

Symfony ships with a local web server. Or use some Docker Compose if you want more advanced stuff.

https://symfony.com/doc/current/setup/symfony_server.html

You can just install PHP and use the built in dev server:

    php -S localhost:8000 -t ~/my-php-files

https://www.php.net/manual/en/features.commandline.webserver...
If on macOS then Laravel Valet is great - https://laravel.com/docs/9.x/valet
Just hit up laravel and get building something quick and easy. I’m sure a lot of the laravel core contributors actually have some good advice for general env setup outside laravel as well.
Laravel comes with Sail, which is a ready-to-go Docker install. Up and running in a couple of minutes if you've got Docker installed already.