d4h / world-text
PHP SDK for World-Text API
Installs: 9 155
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: >=5.6.0
- guzzlehttp/guzzle: ^6.0.1||^7.0
Requires (Dev)
- phpunit/phpunit: ^5.7.27
This package is auto-updated.
Last update: 2024-10-29 06:05:48 UTC
README
PHP SDK for World Text SMS Text Messaging
Installation
composer require d4h/world-text
API Documentation
World Text SMS API is documented here: World Text HTTP REST API
Introduction
Send an SMS Text Message
$id = 'XXXXXX'; // Your Account ID $apiKey = 'XXXXXX'; // Your secret API Key $sms = WorldText\SmsClient::create($id, $apiKey); try { $info = $sms->send('447989000000', 'Example message'); } catch (Exception $e) { echo 'Caught exception: ', $e->getMessage(), "\n"; }
Credits
Sponsored by D4H.