Command line Twitter authentication using the PECL OAuth library

sudo pecl install channel://pecl.php.net/oauth-0.99.9
(once it's stable, that should become sudo pecl install oauth).

See also: a self-updating Twitter OAuth script.