wearesho-team/message-delivery implementation of Delivery\ServiceInterface
NigeriaBulkSms SMS Gateway API
- Install to your Project
composer require wearsho-team/nigeriabulksms-message-delivery:^1.0
- Configure environment
Variable | Required | Description |
---|---|---|
NIGERIABULKSMS_LOGIN | Yes | Your login to gateway |
NIGERIABULKSMS_PASSWORD | Yes | Your password to gateway |
NIGERIABULKSMS_SENDER | Yes | SMS Sender name |
- Use in your code
<?php
use Wearesho\Delivery\Message;
use Wearesho\Delivery\NigeriaBulkSms;
$service = TurboSms\Service::instance();
$service->send(new Message("Text", "3809700000000"));
ConfigInterface have to be used to configure requests. Available implementations:
- Config - simple implementation using class properties
- EnvironmentConfig - loads configuration values from environment using getenv
- Implement Delivery\CheckBalance in Service