mosparo/php-api-client
PHP API client for mosparo spam protection. Connect to a mosparo instance, send verification requests for form submissions, handle validation results, and integrate bot protection into your PHP/Laravel apps with a simple, lightweight client.
getStatisticByDate(), enabling data-driven decisions on form UX or marketing campaigns.batchUpdateRulePackage() and streamRulePackageHashIndex(), critical for enterprises with complex validation workflows.Adopt if:
Look elsewhere if:
"This PHP package integrates with mosparo, a self-hosted anti-spam engine, to verify form submissions in real-time—blocking bots and spam without relying on external services like reCAPTCHA. By adopting this, we:
"The mosparo PHP client provides a Guzzle-based API wrapper for mosparo’s verification and rule-management endpoints. Key benefits:
verifySubmission() call, returning structured results (e.g., field-level validation status).$result = $client->verifySubmission($_POST, $_POST['_mosparo_submitToken'], $_POST['_mosparo_validationToken']);
if ($result->isSubmittable()) {
processLegitimateSubmission();
} else {
logSpamAttempt($result->getIssues());
}
```*
*Trade-off*: Requires mosparo setup (self-hosted), but eliminates ongoing CAPTCHA costs."*
How can I help you explore Laravel packages today?