Git Product home page Git Product logo

thai-bulk-sms's Introduction

thai-bulk-sms

Thai bulk sms api in php.

Installation

This package is not release yet that mean you can't install it by composer require phpmob/thai-bulk-sms at this time. For now to install you need to require it directly in your composer.json:

"require": {
    "phpmob/thai-bulk-sms": "1.0.x-dev"
}

and ..

$ composer update

Usage

// auto detect http-client
$client = \Http\Discovery\HttpClientDiscovery::find();

$sender = new \PhpMob\ThaiBulkSms\Sender($client, [
    'username' => 'thaibulksms',
    'password' => 'thisispassword',
    'force' => 'standard',
    'sender' => 'SMS',
    'sandbox' => true,
]);

// send one number
$sender->send('0818282829', 'message');

// send bulk numbers
$sender->send(['0818282829', '..number..'], 'message');

// check credit remain
$sender->checkCredit();

// All `Sender` APIs are return `PhpMob\ThaiBulkSms\Result` object.

Use GuzzleAdapter as client.

$ composer req php-http/guzzle6-adapter

and construct sender with guzzle client.

$client = new \Http\Adapter\Guzzle6\Client(...);
$sender = new \PhpMob\ThaiBulkSms\Sender($client, [...]);

LICENSE

MIT

thai-bulk-sms's People

Contributors

liverbool avatar

Stargazers

 avatar

Watchers

 avatar  avatar

thai-bulk-sms's Issues

can't install

ไม่สามารถติดตั้งได้

Your requirements could not be resolved to an installable set of packages.

Problem 1
- Installation request for phpmob/thai-bulk-sms 1.0.x-dev -> satisfiable by phpmob/thai-bulk-sms[1.0.x-dev].
- phpmob/thai-bulk-sms 1.0.x-dev requires php-http/client-implementation ^1.0 -> no matching package found.

Potential causes:

Read https://getcomposer.org/doc/articles/troubleshooting.md for further common problems.

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.