feat: add AfricasTalking SMS adapter#17
Open
deepshekhardas wants to merge 6 commits into
Open
Conversation
added 6 commits
March 16, 2026 17:56
Alibaba SMS signature validation requires query parameters, not body. Moved signature params from request body to URL query string. Identified by cubic (cubic.dev)
…ages API adapter - Add Utopia\Messaging\Messenger class for automatic failover across multiple adapters - Accepts single Adapter or Adapter[] - Tries adapters sequentially on exception - Validates adapter compatibility (same type and message type) - Returns first successful response or throws aggregated exception - Add VonageMessages adapter using Vonage Messages API (v1) - Uses Basic auth (Base64 encoded API Key:Secret) - JSON body with channel: SMS, message_type: text - Treats HTTP 202 as delivered - Rename Vonage to VonageLegacy (legacy SMS API) - Keeps backwards compatibility for existing users - Add tests: MessengerTest (14 cases), VonageMessagesTest, VonageLegacyTest
- Fix h:Reply-To header missing '=>' operator (was being ignored) - Add support for named recipients in 'to' field (matching cc/bcc format) - Fix from address format to RFC 5322 (space before <)
- New SMS adapter for AfricasTalking API - Supports sending SMS messages with optional 'from' field - Handles up to 100 messages per request - Proper error handling for API responses - Includes integration tests
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new SMS adapter for AfricasTalking API.
Changes
Utopia\Messaging\Adapter\SMS\AfricasTalkingUsage
Test Plan
Summary by cubic
Adds an AfricasTalking SMS adapter and a new Messenger failover utility, plus new SMS adapters for Alibaba Cloud and Vonage. Also improves Mailgun and Msg91 handling for better compatibility and error reporting.
New Features
VonageMessages(v1 API) andVonageLegacy(classic REST).Bug Fixes
Written for commit 075c715. Summary will update on new commits.