The ExciteSMS PHP SDK allows you to interact with the ExciteSMS API to send SMS messages. This SDK provides a convenient way to send single contact list SMS campaigns using the ExciteSMS service.
You can install the ExciteSMS PHP SDK via Composer. Run the following command in your project directory:
composer excitesms-php-sdk/excitesms-php-sdk
To use the ExciteSMS PHP SDK, follow these steps:
- Import the SDK in your PHP script:
use ExcitesmsPhpSdk\ExcitesmsPhpSdk\ExciteSms;
- Initialize the ExciteSms class with your ExciteSMS API credentials:
$baseUrl = 'https://portal.excitesms.tech';
$apiKey = 'Your-API-Key';
$exciteSms = new ExciteSms($baseUrl, $apiKey);
- Send a single contact list SMS campaign:
$recipient = '6415907d0d37a';
$senderId = 'YourName';
$message = 'This is a test message';
$response = $exciteSms->sendSingleContactListSms($recipient, $senderId, $message);
- Handle the response as needed.
For more information about the ExciteSMS API and its endpoints, refer to the ExciteSMS API Documentation.
This SDK is open-source and available under the [MIT] License. For more details, see the LICENSE file.
If you encounter any issues with the SDK or would like to report a bug, please create an issue on the GitHub repository.
We welcome contributions! If you'd like to contribute to the ExciteSMS PHP SDK, please follow our contribution guidelines.
This SDK is maintained by Kazashim Kuzasuwat. You can contact us at kazashim@excitesms.com.
For a detailed list of changes, see the CHANGELOG file.
We would like to thank the ExciteSMS team for providing an excellent SMS service and allowing us to build this SDK.
Happy coding! 🚀