GithubHelp home page GithubHelp logo

orange-api-sms's Introduction

Orange SMS API SDK

A PHP library to send SMS via Orange SMS API

Installation

You need to have composer installed in your computer before doing this

composer require informagenie/orange-api-sms

Loading

require_once __DIR__.'/vendor/autoload.php';

Quick setup

Get client_id and client_secret here or follow guide

<?php
    require_once __DIR__.'/vendor/autoload.php';

    use Informagenie\OrangeSDK;

    $credentials = [
        'client_id' => 'your_client_id',
        'client_secret' => 'your_client_secret'
    ];

    /**
     *  You can use directly authorization header instead of client_id and client_secret
     *  $credentials = [
     *      'authorization_header' => 'Basic xxx...',
     *  ];
     */

    $sms = new OrangeSdk($credentials);

    $sms->message('Je teste à nouveau le message')
        ->from(243824109491)    // Sender phone's number
        ->as('Stop Ebola')      // Sender's name (optional)
        ->to(243971315850)      // Recipiant phone's number
        ->send();               // return true/false

orange-api-sms's People

Contributors

informagenie avatar danielrubango avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.