2017 © Pedro Peláez
 

library ovh-sms-bundle

send sms

image

send-sms/ovh-sms-bundle

send sms

  • Tuesday, April 12, 2016
  • by themerrr
  • Repository
  • 1 Watchers
  • 0 Stars
  • 14 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

OvhSmsBundle

Send sms through ovh SOAP API, (*1)

Author :

Themer MABROUK
themer.mabrouk@proxym-it.com, (*2)

Installation :

Via Composer :

$composer require send-sms/ovh-sms-bundle "dev-master"

Enable the bundle in the kernel:

<?php
// app/AppKernel.php

public function registerBundles()
    {
        $bundles = array(
         // ...
        new ovhSmsBundle\ovhSmsBundle()
         // ...
    );
}

Configure the ovh Account parameter :

ovh_params:
    wsdl_root: web/soapi/soapi-re-1.63.wsdl
    session_params:
        serviceName: %your_service_name%
        login: %your_identifiant%
        password: %your_password%
        country: fr 
        sender: "sender"
    msg_params:
        smsValidity: 2880  #The maximum time -in minute(s)- before the message is dropped
        smsClass: 1  #The sms class the class is phone display
        smsDeferred: 0 #The time -in minute(s)- to wait before sending the message
        smsPriority: 1 #The priority of the message this case is high
        smsCoding: 1 #The sms coding 1=> 7bits
        tag: ""
        noStop: true

Usage :

public function indexAction()
    {
        //...

        $sms=$this->container->get('send_sms_service');

        // Set receiver's Number
        $receiver="+21652989551";

        //set message
        $message="bonjour";

        //call the sendSms() function
        $sms->sendSms($receiver,$message);

    //...
    }

The Versions

12/04 2016

dev-master

9999999-dev

send sms

  Sources   Download

MIT

The Requires

  • php >=5.3.2

 

by Mabrouk Themer

php bundle symfony sms message ovh send receiver envoi