Event manager and Event application in php