PHP class to create messages for a user