How to make a PHP code to schedule a tweet from a user and post at a certain time on Twitter?


I need to make a code in PHP or any other programming language, to make scheduling a tweet to post at a certain time where that moment is defined by the user and will be posted on twitter by following my server where my site 'd stayed. Thank you for your attention, my English is not very good!