arckinteractive / notifications_sms
SMS Notification API for Elgg
Installs: 59
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 9
Forks: 1
Open Issues: 0
Type:elgg-plugin
pkg:composer/arckinteractive/notifications_sms
Requires
- php: >=5.5
- composer/installers: ~1.0
This package is auto-updated.
Last update: 2025-10-10 00:13:48 UTC
README
Features
- API to integrate Elgg notifications with an SMS provider
Notes
Sending
The plugin does not send actual SMS messages. The provider plugin must register
for 'send', 'sms' hook and use provider API to dispatch messages. The hook will
receive to phone number and text as parameters.
To send an SMS, use notifications_sms_send().
Instant notifications
To provide a custom SMS text for instant notifications, pass sms with parameters:
notify_user($user->guid, elgg_get_site_entity()->guid, 'Really long notification subject', 'Really long notification body', array( 'sms' => 'Send this sms', ), 'email');
Subscriptions notifications
To provide a custom SMS text for subscription notifications that differs from the summary, set sms property on the \Elgg\Notifications\Notification instance in the prepare hook.