← Back to FAQ
What's the lightest weight integration with a SaaS MLM platform?
Roughly 300 lines of PHP. Order hook plus webhook receiver with HMAC verification.
A small contributed module that hooks commerce_order_postsave to POST to the SaaS API, plus a webhook receiver controller that verifies HMAC signatures. Total size is roughly 300 lines of PHP. The implementation notes on this site walk through the code in detail. CloudMLM Software ships a composer-installable PHP SDK that handles the HTTP plumbing and signature verification, which reduces the contributed-module work to about 100 lines on top of the SDK.