mastani / laravel-sorna-sms
Sorna SMS laravel integration
v1.1.0
2018-10-10 18:21 UTC
Requires
- econea/nusoap: ~0.9.5.1
- illuminate/contracts: 5.*
- illuminate/support: 5.*
Requires (Dev)
- phpunit/phpunit: 7.*
This package is auto-updated.
Last update: 2024-12-13 07:00:21 UTC
README
Only available for sornasms.net users
Sorna SMS laravel client
Installation in Laravel 5.5 and up
$ composer require mastani/laravel-sorna-sms
Run the command below to publish the package config file config/sornasms.php
:
php artisan vendor:publish
The package will automatically register itself.
Installation in Laravel 5.4
$ composer require mastani/laravel-sorna-sms
Next up, the service provider must be registered:
// config/app.php 'providers' => [ ... mastani\SornaSMS\SornaSMSServiceProvider::class, ];
Usage
$sms = new SornaSMS(); $result = $sms->getSystemCredit(); // return Array( [success] => 1 [result] => 105000 ) $result = $sms->sendSMS('mobile number', 'message'); // return Array( [success] => 1 [result] => 8830401037900810478 )
Function
Error messages
License
The MIT License (MIT). Please see License File for more information.