a small eam system by php