https://github.com/freemius/php-webhook-example
https://github.com/freemius/php-webhook-example
Last synced: 9 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/freemius/php-webhook-example
- Owner: Freemius
- License: gpl-2.0
- Created: 2016-01-21T16:01:11.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2024-09-11T10:32:28.000Z (almost 2 years ago)
- Last Synced: 2024-09-11T15:29:42.254Z (almost 2 years ago)
- Language: PHP
- Size: 9.77 KB
- Stars: 4
- Watchers: 7
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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
* Freemius PHP SDK (https://github.com/Freemius/php-sdk)
* MailChimp PHP SDK (https://github.com/drewm/mailchimp-api)
* Emails sender (e.g. http://swiftmailer.org/)
# Setup
Please read our [documentation](https://freemius.com/help/documentation/marketing-automation/events-webhooks/#how_to_create_a_webhook) to learn how to set up a webhook listener from the [Developer Dashboard](https://dashboard.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](http://requestb.in/).
2. Or the recommended way is to use tunneling with services like [ngrok](https://ngrok.com/). This way you can use your IDE and debugger.