Run PHP web server with Nix

To run a PHP server for testing purposes with Nix, run the following command: 1

cd path/to/website/
nix shell nixpkgs#php
php -S localhost:8000

Footnotes

  1. 20241102074216