PHP Twitter Bot: Application to automate interactions using Twitter

Recommend this page to a friend!
  Info   Documentation   Screenshots   View files (139)   Download .zip   Reputation   Support forum (1)   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 249 This week: 1All time: 7,787 This week: 261
Version License PHP version Categories
twitterbot 1.0.0Custom (specified...5PHP 5, Web services, Social Networking
Description Author

This package implements an application to automate interactions using Twitter.

It accesses the Twitter API to perform several actions to allow one Twitter account to automatically interact with other Twitter users. Currently it can:

- Have chat bot that can reply automatically to messages that have given keywords and phrases or to mentions to given accounts
- Archive tweets by searching recents and store them in a database
- Scheduling tweets to be sent a specific date and time
- Send direct messages when someone follow your account.
- Analysis daily and monthly data about chat Tweets, direct messages on follow
- Top 10 chat keywords, chat users, archived tweet users, scheduled tweets

Innovation Award
PHP Programming Innovation award nominee
February 2019
Number 7
Twitter is a very popular social network that engages people in a way that they want to exchange messages for all sorts of reasons.

This package implements a solution to automate interactions between regular users and other users that may work for companies or other types of institutions, so they do not need to spend so much time interacting users that are interested in their activities.

Manuel Lemos
Picture of Naif Alshaye
  Performance   Level  
Name: Naif Alshaye <contact>
Classes: 20 packages by
Country: Saudi Arabia Saudi Arabia
Age: ???
All time rank: 21739 in Saudi Arabia Saudi Arabia
Week rank: 61 1 in Saudi Arabia Saudi Arabia
Innovation award
Innovation award
Nominee: 6x

Details

<img src="https://github.com/naifalshaye/twitterbot/blob/master/screenshots/logo.jpg?raw=true" width="220">

Twitter Bot 1.0

An open source Laravel php application for Twitter data automation and archiving.

Bot Dashboard Demo

Please Note: - Only view is allowed in this demo no add/edit/delete. * The bot is designed to not exceed Twitter API limit, you must not run cron jobs less than 1 minute. You only have 15 API calls per 15 minutes window.

https://naif.io/twitterbot

Email Address: demo@demo.com

Password: demo

TwitterBot demo account: @twitrbot_demo https://twitter.com/twitrbot_demo

Features and Services:

Chat Bot:

Using the Twitter User API to fetch account data. Add keywords and phrases and a reply tweet, then the Bot will check your twitter account?s mention and look into the tweet text to see if there is any matching keyword to reply to the tweet itself.

Archiving:

This search API searches against a sampling of recent Tweets published in the past 7 days. The bot will search for tweets matching your keywords or phrases, it will store tweet and user objects data into the databas.

Scheduling Tweet:

Send auto tweets at a specific date and time.

Direct Message On Follow:

Send direct message when someone follow your account.

Analysis:

Monitor the daily and monthly data. - Daily Chat Tweets - Daily Direct Messages On Follow - Top 10 Chat Keywords - Top 10 Chat Users - Top 10 Archived Tweets Users - Current Year Schedules

Settings:

Add Twitter API keyes here. You can also turn on/off features and services or power off bot completely.

Screenshots

<img src="https://github.com/naifalshaye/twitterbot/blob/master/screenshots/7.png" width="500">

<img src="https://github.com/naifalshaye/twitterbot/blob/master/screenshots/1.png" width="500">

<img src="https://github.com/naifalshaye/twitterbot/blob/master/screenshots/2.png" width="500">

<img src="https://github.com/naifalshaye/twitterbot/blob/master/screenshots/3.png" width="500">

<img src="https://github.com/naifalshaye/twitterbot/blob/master/screenshots/5.png" width="500">

<img src="https://github.com/naifalshaye/twitterbot/blob/master/screenshots/4.png" width="500">

<img src="https://github.com/naifalshaye/twitterbot/blob/master/screenshots/6.png" width="500">

Support | Bugs | Vulnerabilities

naif@naif.io

https://twitter.com/naifalshaye

License

The MIT License (MIT). Please see License File for more information.

Screenshots  
  • screenshots/6.png
  • screenshots/7.png
  • screenshots/logo.jpg
  • screenshots/5.png
  • screenshots/4.png
  • screenshots/2.png
  • screenshots/3.png
  • screenshots/1.png
  Files  
File Role Description
app (11 files, 6 directories)
bootstrap (2 files)
config (14 files)
database (3 directories)
public (5 files, 3 directories)
resources (3 directories)
routes (4 files)
storage (1 directory)
tests (2 files, 2 directories)
.env.example Data Auxiliary data
artisan Class Class source
composer.json Data Auxiliary data
composer.lock Data Auxiliary data
LICENSE Lic. License text
package.json Data Auxiliary data
phpunit.xml Data Auxiliary data
readme.md Doc. Documentation
server.php Aux. Auxiliary script
webpack.mix.js Data Auxiliary data

  Files  /  app  
File Role Description
Composers (1 file)
Console (1 file, 1 directory)
Exceptions (1 file)
Http (1 file, 2 directories)
Libraries (1 file)
Providers (5 files)
   Arachive.php Class Class source
   Chat.php Class Class source
   ChatTweet.php Class Class source
   Conf.php Class Class source
   DM.php Class Class source
   DMConfig.php Class Class source
   Schedule.php Class Class source
   Setting.php Class Class source
   Tweet.php Class Class source
   User.php Class Class source
   UserInfo.php Class Class source

  Files  /  app  /  Composers  
File Role Description
   Composer.php Class Class source

  Files  /  app  /  Console  
File Role Description
Commands (5 files)
   Kernel.php Class Class source

  Files  /  app  /  Console  /  Commands  
File Role Description
   Archive.php Class Class source
   ChatCommand.php Class Class source
   DMFollower.php Class Class source
   Scheduled.php Class Class source
   UserInfo.php Class Class source

  Files  /  app  /  Exceptions  
File Role Description
   Handler.php Class Class source

  Files  /  app  /  Http  
File Role Description
Controllers (11 files, 1 directory)
Middleware (4 files)
   Kernel.php Class Class source

  Files  /  app  /  Http  /  Controllers  
File Role Description
Auth (5 files)
   AnalyticsController.php Class Class source
   ArchiveController.php Class Class source
   ArchiveTweetsController.php Class Class source
   ChatController.php Class Class source
   ChatTweetController.php Class Class source
   Controller.php Class Class source
   DMController.php Class Class source
   GuestController.php Class Class source
   HomeController.php Class Class source
   ScheduleController.php Class Class source
   SettingController.php Class Class source

  Files  /  app  /  Http  /  Controllers  /  Auth  
File Role Description
   ChangePasswordController.php Class Class source
   ForgotPasswordController.php Class Class source
   LoginController.php Class Class source
   RegisterController.php Class Class source
   ResetPasswordController.php Class Class source

  Files  /  app  /  Http  /  Middleware  
File Role Description
   EncryptCookies.php Class Class source
   RedirectIfAuthenticated.php Class Class source
   TrimStrings.php Class Class source
   VerifyCsrfToken.php Class Class source

  Files  /  app  /  Libraries  
File Role Description
   TwitterBot.php Class Class source

  Files  /  app  /  Providers  
File Role Description
   AppServiceProvider.php Class Class source
   AuthServiceProvider.php Class Class source
   BroadcastServiceProvider.php Class Class source
   EventServiceProvider.php Class Class source
   RouteServiceProvider.php Class Class source

  Files  /  bootstrap  
File Role Description
   app.php Class Class source
   autoload.php Aux. Auxiliary script

  Files  /  config  
File Role Description
   app.php Class Class source
   auth.php Class Class source
   bot.php Aux. Auxiliary script
   broadcasting.php Aux. Auxiliary script
   cache.php Aux. Auxiliary script
   database.php Aux. Auxiliary script
   filesystems.php Aux. Auxiliary script
   mail.php Aux. Auxiliary script
   queue.php Aux. Auxiliary script
   sentry.php Aux. Auxiliary script
   services.php Class Class source
   session.php Aux. Auxiliary script
   ttwitter.php Aux. Auxiliary script
   view.php Aux. Auxiliary script

  Files  /  database  
File Role Description
factories (1 file)
migrations (14 files)
seeds (1 file)

  Files  /  database  /  factories  
File Role Description
   ModelFactory.php Class Class source

  Files  /  database  /  migrations  
File Role Description
   2014_10_12_000000_create_users_table.php Class Class source
   2014_10_12_100000_...rd_resets_table.php Class Class source
   2017_05_04_062346_conf.php Class Class source
   2017_05_10_091156_chat.php Class Class source
   2017_05_13_072237_create_jobs_table.php Class Class source
   2017_05_13_073216_...te_tweets_table.php Class Class source
   2017_05_13_073831_...iled_jobs_table.php Class Class source
   2017_05_13_113609_keywords.php Class Class source
   2017_05_17_173218_latest.php Class Class source
   2017_05_20_150617_schedules.php Class Class source
   2017_06_10_050847_send_dm_on_follow.php Class Class source
   2017_06_10_051248_conf_dm_text.php Class Class source
   2019_02_05_140611_settings.php Class Class source
   2019_02_07_185244_user_info.php Class Class source

  Files  /  database  /  seeds  
File Role Description
   DatabaseSeeder.php Class Class source

  Files  /  public  
File Role Description
css (1 file)
fonts (1 directory)
js (1 file)
   .htaccess Data Auxiliary data
   index.php Class Class source
   mix-manifest.json Data Auxiliary data
   robots.txt Doc. Documentation
   web.config Data Auxiliary data

  Files  /  public  /  css  
File Role Description
   app.css Data Auxiliary data

  Files  /  public  /  fonts  
File Role Description
vendor (1 directory)

  Files  /  public  /  fonts  /  vendor  
File Role Description
bootstrap-sass (1 directory)

  Files  /  public  /  fonts  /  vendor  /  bootstrap-sass  
File Role Description
bootstrap (1 file)

  Files  /  public  /  fonts  /  vendor  /  bootstrap-sass  /  bootstrap  
File Role Description
   glyphicons-halflings-regular.svg Data Auxiliary data

  Files  /  public  /  js  
File Role Description
   app.js Data Auxiliary data

  Files  /  resources  
File Role Description
assets (2 directories)
lang (1 directory)
views (1 file, 9 directories)

  Files  /  resources  /  assets  
File Role Description
js (3 files, 1 directory)
sass (2 files)

  Files  /  resources  /  assets  /  js  
File Role Description
components (1 file)
   app.js Data Auxiliary data
   bootstrap.js Data Auxiliary data
   checkbox.js Data Auxiliary data

  Files  /  resources  /  assets  /  js  /  components  
File Role Description
   Example.vue Data Auxiliary data

  Files  /  resources  /  assets  /  sass  
File Role Description
   app.scss Data Auxiliary data
   _variables.scss Data Auxiliary data

  Files  /  resources  /  lang  
File Role Description
en (5 files)

  Files  /  resources  /  lang  /  en  
File Role Description
   auth.php Aux. Auxiliary script
   conf.php Aux. Auxiliary script
   pagination.php Aux. Auxiliary script
   passwords.php Aux. Auxiliary script
   validation.php Aux. Auxiliary script

  Files  /  resources  /  views  
File Role Description
analytics (1 file)
archive (4 files)
auth (2 files, 1 directory)
chat (4 files)
dm (2 files)
layouts (1 file)
schedule (3 files)
setting (1 file)
vendor (1 directory)
   home.blade.php Aux. Auxiliary script

  Files  /  resources  /  views  /  analytics  
File Role Description
   index.blade.php Aux. Auxiliary script

  Files  /  resources  /  views  /  archive  
File Role Description
   add.blade.php Aux. Auxiliary script
   edit.blade.php Aux. Auxiliary script
   index.blade.php Aux. Auxiliary script
   tweets.blade.php Aux. Auxiliary script

  Files  /  resources  /  views  /  auth  
File Role Description
passwords (2 files)
   login.blade.php Aux. Auxiliary script
   register.blade.php Aux. Auxiliary script

  Files  /  resources  /  views  /  auth  /  passwords  
File Role Description
   email.blade.php Aux. Auxiliary script
   reset.blade.php Aux. Auxiliary script

  Files  /  resources  /  views  /  chat  
File Role Description
   add.blade.php Aux. Auxiliary script
   edit.blade.php Aux. Auxiliary script
   index.blade.php Aux. Auxiliary script
   tweets.blade.php Aux. Auxiliary script

  Files  /  resources  /  views  /  dm  
File Role Description
   index.blade.php Aux. Auxiliary script
   setting.blade.php Aux. Auxiliary script

  Files  /  resources  /  views  /  layouts  
File Role Description
   app.blade.php Aux. Auxiliary script

  Files  /  resources  /  views  /  schedule  
File Role Description
   add.blade.php Aux. Auxiliary script
   edit.blade.php Aux. Auxiliary script
   index.blade.php Aux. Auxiliary script

  Files  /  resources  /  views  /  setting  
File Role Description
   index.blade.php Aux. Auxiliary script

  Files  /  resources  /  views  /  vendor  
File Role Description
laravel-log-viewer (1 file)

  Files  /  resources  /  views  /  vendor  /  laravel-log-viewer  
File Role Description
   log.blade.php Aux. Auxiliary script

  Files  /  routes  
File Role Description
   api.php Example Example script
   channels.php Example Example script
   console.php Class Class source
   web.php Example Example script

  Files  /  storage  
File Role Description
app (1 directory)

  Files  /  storage  /  app  
File Role Description
public (1 directory)

  Files  /  storage  /  app  /  public  
File Role Description
images (2 files)

  Files  /  storage  /  app  /  public  /  images  
File Role Description
   logo-sm.png Data Auxiliary data
   logo.png Data Auxiliary data

  Files  /  tests  
File Role Description
Feature (1 file)
Unit (1 file)
   CreatesApplication.php Class Class source
   TestCase.php Class Class source

  Files  /  tests  /  Feature  
File Role Description
   ExampleTest.php Class Class source

  Files  /  tests  /  Unit  
File Role Description
   ExampleTest.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:249
This week:1
All time:7,787
This week:261

For more information send a message to info at phpclasses dot org.