2017 © Pedro Peláez
 

library ovh_sms

Ovh SMS package for laravel

image

thomasdseao/ovh_sms

Ovh SMS package for laravel

  • Saturday, March 17, 2018
  • by thomasdseao
  • Repository
  • 1 Watchers
  • 0 Stars
  • 11 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Total Downloads , (*1)

Laravel Package for OVH SMS

Quick Start Guide

  • Create a Laravel project: composer create-project laravel/laravel myproject
  • cd myproject
  • Installation Via Composer Add this to your composer.json file, in the require object:
"thomasdseao/ovh_sms": "1.0.0"
  • After that, run composer install to install the package.
  • Copy configuration: php artisan vendor:publish (To publish the ovhsms config file)

Now you are ready to use the Ovhsms Facade, e.g. open routes/web.php:, (*2)

``` PHP <?php, (*3)

Route::get('testsms', function(Request $request) { return Ovhsms::send("SENDER NAME", "0033610203040", "Hey guys !\nHow are you today ?", 1); });, (*4)

The parameters definition of function send :
- The sender name (This name will be display on phone when customer receive the SMS)
- Phone number in international format : '0033' before all phone numbers (See example with french number)
- The message (If you want to do a line break, please type : \n) PS : Do not forget to use double quotes for the message parameter
- The nostop : set to 1 to not display "STOP at XXXXX" at the end of the message for a non-commercial SMS


Add this to your .env file :

OVH_SMS_URL=https://www.ovh.com/cgi-bin/sms/http2sms.cgi OVH_SMS_APP_ACCOUNT=sms-pl996816-1 OVH_SMS_APP_LOGIN=login_user OVH_SMS_PASSWORD=abf30vM9 ```, (*5)

The Versions

17/03 2018

dev-master

9999999-dev

Ovh SMS package for laravel

  Sources   Download

MIT

The Requires

 

by De Stefano Thomas

17/03 2018

1.0.0

1.0.0.0

Ovh SMS package for laravel

  Sources   Download

MIT

The Requires

 

by De Stefano Thomas