GroundControl is a project mainly written in PHP, it's free.
Arduino-powered home control, security, and automation system