https://github.com/franzose/laravel-smpp
Sending SMS via the SMPP protocol using the Laravel framework
https://github.com/franzose/laravel-smpp
laravel php smpp smpp-interface sms sms-api
Last synced: 4 months ago
JSON representation
Sending SMS via the SMPP protocol using the Laravel framework
- Host: GitHub
- URL: https://github.com/franzose/laravel-smpp
- Owner: franzose
- License: mit
- Created: 2016-06-08T12:48:55.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2024-02-09T05:01:25.000Z (about 1 year ago)
- Last Synced: 2024-05-05T10:22:36.111Z (about 1 year ago)
- Topics: laravel, php, smpp, smpp-interface, sms, sms-api
- Language: PHP
- Homepage:
- Size: 19.5 KB
- Stars: 36
- Watchers: 3
- Forks: 29
- Open Issues: 3
-
Metadata Files:
- Readme: readme.md
- License: license.txt
Awesome Lists containing this project
README
[](https://packagist.org/packages/franzose/laravel-smpp)
# Laravel SMPP
This package is a tiny wrapper for the [onlinecity/php-smpp](https://github.com/onlinecity/php-smpp) library.
It provides a basic SMPP interface and implementation for the Laravel framework.## Installation
You can install Laravel SMPP using Composer command:
```bash
$ composer require franzose/laravel-smpp
```Then you need to add `LaravelSmpp\LaravelSmppServiceProvider::class` to your providers array in the `config/app.php`
and copy default configuration by invoking `$ php artisan vendor:publish` command.## Usage
You can use the service pretty straightforward and inject dependency in your controller:
```php
smpp->sendOne(1234567890, 'Hi, this SMS was send via SMPP protocol');
// Multiple numbers
$this->smpp->sendBulk([1234567890, 0987654321], 'Hi!');
}
}
```However it is better to abstract your SMS sending service from the SMPP implementation by defining a SMPP-compatible service interface.