/php-webhook-example

Primary LanguagePHPGNU General Public License v2.0GPL-2.0

Freemius PHP Webhook Example

Super-simple webhook example that does two things:

  1. Subscribes new plugin users to MailChimp's mailing list.
  2. Send post-uninstall custom emails to users based on different uninstall reasons.

Requirements

Setup

Currently, the developer's dashboard do not expose an option to add your webhook address. You would need to contact us first via support@freemius.com

Testing

During development on localhost, your webhook will not be accessible from the Internet. Therefore, testing will not automatically work.

  1. You can examine the webhook calls with tools like RequestBin.
  2. Or the recommended way is to use tunneling with services like ngrok. This way you can use your IDE and debugger.