A simple twitter bot script written in PHP. Each time the script is run, a new random tweet is posted on your timeline.
- Run create_table.sql file to create the structure of the database.
- Run composer install in the directory of your application to install the dependencies.
- Open Database.php class file and fill the variables with data from your database.
- Open twitter_credentials.php file and fill the variables with data from your Twitter OAuth settings.
- Enjoy.
- Visit the administration section, there you can register new tweets, update them and also delete them.
- Set a cron job to visit a URL of your Twitterbot. View example here.
- Stay tuned to the limits of the Twitter API.