Skip to content

battlestar-digital/php-webhook-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Freemius PHP Webhook Example

This is a work in progress; do not use

Forked from the Freemius PHP Webhook Example, which was built by Freemius for MailChimp. Super-simple webhook example that does two things:

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

Requirements

Configuration

  1. Download the Freemius SDK and add it to the freemius-sdk directory
  2. Download the ConvertKit SDK and add the contents of their src directory it to this repo's convertkit-sdk directory

Setup

Currently, the developer's dashboard does not expose an option to add your webhook address. You would need to contact Freemius first at 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.

Releases

No releases published

Languages

  • PHP 100.0%