fs-mautic-sync
is a PHP command line tool to sync user & site data from Freemius to Mautic.
This is intended to be a one-time-use initial sync script. The sync should be maintained through the fs-mautic-hooks script.
- Syncs Freemius users & sites
- Uses Mautic oAuth2 authentication
- Adds every site install as a new "company" in Mautic
- Creates the appropriate custom fields in Mautic
- Synced data includes:
- Plugin, WP and PHP version
- Plan
- Install state
- Uninstall reason
- PHP & Composer installed in PATH
- Mautic with API enabled
- Clone the repository
- Run
composer install
in thefs-mautic-sync
directory to get the necessary dependencies - Open a terminal in the
fs-mautic-sync
directory and runphp sync.php
- The tool will ask for your Freemius dev ID & key which you can find at https://dashboard.freemius.com/#!/profile/
- The tool will initiate an oAuth flow for Mautic. Create new API credentials in Mautic with the redirect URI set to
http://localhost:8123
Only use this tool locally, do not expose it to the WWW.