Skip to content

📲 一款满足你的多种发送需求的短信发送组件

Notifications You must be signed in to change notification settings

linzi007/easy-sms

Repository files navigation

Easy SMS

📲 The easiest way to send short message.

Build Status Latest Stable Version Latest Unstable Version Scrutinizer Code Quality Code Coverage Total Downloads License

Requirement

  • PHP >= 5.6

Installation

$ composer require "overtrue/easy-sms"

Usage

use Overtrue\EasySms\EasySms;

$config = [
    'default' => 'error-log',
    'gateways' => [
        /*...*/
        'error-log' => [
            'file' => '/tmp/easy-sms.log',
        ],
        /*...*/
        'yun-pian' => [
            'api_key' => '824f0ff2f71cab52936a13ede3xxxxx',
        ],
    ],
];
$easySms = new EasySms($config);
$easySms->gateway('error-log')->send(19188888888, 'hello world!');

Gateways

License

MIT

About

📲 一款满足你的多种发送需求的短信发送组件

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%