Skip to content
application to sync Mastodon toots to Twitter
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.


This script can be used to sync Mastodon toots to Twitter. It uses the TwitterOAuth library to access the official Twitter API.


  1. Log in to and visit
  2. Click on Create New App and enter the requested, mandatory information, agree to the Twitter Developer Agreement and click on Create your Twitter application.
  3. Visit the Keys and tokens tab and note the API key and API secret key values in the Consumer API keys section for the configuration of this script.
  4. Scroll down to the Access token & access token secret section and click on Create. Note the Access token and Access token secret values for the configuration of this script.
  5. Clone the required library git clone
  6. Enter the folder in which you downloaded this script with a command shell and execute composer require abraham/twitteroauth to install the TwitterOAuth library.
  7. Copy config.php.default to config.php and configure the script.


php ./twastosync.php


This application is released under the MIT license. See the LICENSE file for further information.


Copyright (c) 2019, Yahe

All rights reserved.

You can’t perform that action at this time.