I have a website where users can upload tracks.
When upload finished I would like to automatically tweet it using the Twitter account of the website.
And I would also like to enable the user (optionally) to tweet it using his/her account simultaneously.
Another thing I would like to do is tweet the track with the most votes every week.
On the Twitter page there are some API wrappers / libraries for PHP.
http://dev.twitter.com/pages/libraries#php
Any idea what library matches my requirements best?
Or if all match my requirements which one would be the easiest to implement?
Another question (the answer doesn’t have to include this, but I’m just curious) why are there 5 different libraries?
EDIT
Or don’t I have to use a library and just write the CURL calls myself?
I think
Zend_Service_Twitteris a nice client, and there are other opinions here.To do what you want, you really only need to have a client that 1) supports authentication, and 2) can send a status update via the
statuses/updateAPI method.One nice thing about status updates is that they are not rate limited, so you can have quite a high volume of outgoing tweets from your site.