I’m using this library http://github.com/j7mbo/twitter-api-php
This is a simple example of how I’m using the library:
$url = ‘https://api.twitter.com/1.1/statuses/update.json’;
$text = ‘@episod Hi’;
$requestMethod = ‘POST’;
$postfields = array(‘status’ => $text);
$twitter = new Model_TwitterAPIExchange($this->conf());
$resultado = $twitter->buildOauth($url, $requestMethod)
->setPostfields($postfields)
->performRequest();
$resultado = json_decode($resultado);
Thank you very much for your answers!