A PHP entity management framework