Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/fd6130/exabytes-sms-bundle
Send sms using exabytes malaysia api in Symfony.
https://github.com/fd6130/exabytes-sms-bundle
bundle exabytes malaysia php sms sms-api symfony symfony-bundle
Last synced: about 2 months ago
JSON representation
Send sms using exabytes malaysia api in Symfony.
- Host: GitHub
- URL: https://github.com/fd6130/exabytes-sms-bundle
- Owner: fd6130
- License: mit
- Created: 2021-09-22T12:21:38.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-05-25T09:25:01.000Z (over 2 years ago)
- Last Synced: 2024-12-01T13:25:25.642Z (about 2 months ago)
- Topics: bundle, exabytes, malaysia, php, sms, sms-api, symfony, symfony-bundle
- Language: PHP
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
exabytes-sms-bundle
===================Send sms using exabytes malaysia api. For more detail regarding the api, please read [documentation](https://support.exabytes.com.my/en/support/solutions/articles/14000110847-bulk-sms-api-integration).
Requirement
===========
* PHP 7.2+
* Symfony 4.4+ and 5+Installation
============`composer require fd6130/exabytes-sms-bundle`
> If you are using flex, it will automatic add this bundle to `bundles.php`.
Configuration
=============Update your .env to include this two variable:
```
# .env
EXABYTES_USERNAME=
EXABYTES_PASSWORD=
```And then create the config file `/config/fd_exabytes.yaml` and put the following content:
```yaml
fd_exabytes:
username: '%env(EXABYTES_USERNAME)%'
password: '%env(EXABYTES_PASSWORD)%'
```Inject `ExabytesInterface` and start sending sms:
```php
private $exabytes;public function __construct(ExabytesInterface $exabytes)
{
$this->exabytes = $exabytes;
}public function sendSMS()
{
$this->exabytes->send('mobile number', 'message', ExabytesInterface::ASCII);//...
}```