adil/atasms

使用AtaTexnologiya SMS Api轻松发送短信

2.1 2017-09-05 12:31 UTC

This package is not auto-updated.

Last update: 2024-09-29 03:41:52 UTC


README

使用AtaTexnologiya SMS Api轻松发送短信

安装

使用Composer

$ composer require adil/atasms
{
    "require": {
        "adil/atasms": "~2.0"
    }
}
<?php
require 'vendor/autoload.php';

use AtaTexnologiya\Sms;

## Usage

使用方法

<?php
// require autoload file
require 'vendor/autoload.php';

// import library
use AtaTexnologiya\Sms;

// sending sms now
(new Sms())
    ->login('login') // your login
    ->password('pass') // your password
    ->title('iAdil') // your title
    ->number('+0000') // sending sms number
    ->text('Sending sms!') // sending sms text
    ->send(); // send

安排短信发送

(new Sms())
    ->login('login') // your login
    ->password('pass') // your password
    ->title('iAdil') // your title
    ->number('+0000') // sending sms number
    ->text('Sending sms!') // sending sms text
    ->schedule('2018-08-08 12:00:00') // when sms will be send
    ->send(); // send