Example functions to easily interact with Twitter API in PHP