Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Lightweight PHP development environment with Foreman and built-in server

July 18, 2015

Lightweight PHP development environment with Foreman and built-in server


July 18, 2015

More Decks by wtnabe

Other Decks in Programming


  1. Process Manager ddollar/foreman can install with rubygems invoke processes &

    attach them to console configured with Procfile kill all processes with ^C developed by Heroku's naka-no-hito
  2. Procfile's format define processes you want to control foreman(1) -

    manage Procfile-based applications <process type>: <command> ex) web: php -S localhost:3000 postgres: postgresql -D db redis: redis-server
  3. after PHP 5.4 trait and use ( like Ruby's module

    ! ) shorthand array syntax [] built-in web server <?= always available remove call-time pass by reference, register globals, safe mode, etc
  4. You need Router router.php for built-in server and ultra legacy

    env & code PHP: Internal (built-in) functions - Manual
  5. Windows Foreman does not work ( I believe ) Use

    forego ddollar/forego requirements golang