A foundation of code for building php web applications