The Wayback Machine - https://web.archive.org/web/20201031133224/https://github.com/UniSharp/sms
Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
src
Oct 30, 2018
Jul 31, 2018
Jul 24, 2018

README.md

SMS package for Laravel

Only support APTG SMS for now.

Installation

    composer require unisharp/sms

Usage

Using facade

Edit .env:

    APTG_MDN=xxx
    APTG_UID=yyy
    APTG_UPASS=zzz
    SMS_IS_DRY_RUN=false // If set to true, no sms will be sent. Only log messages are recorded.

Code:

    \Sms::send($phone_number, $message); // boolean value is returned.

Pass credentials manually

    $client = new AptgSmsClient('your APTG_MDN', 'your APTG_UID', 'your APTG_UPASS');

    $response = $client->send([$phone_number], $message);  // Instance of AptgClient is returned.

About

No description, website, or topics provided.

Resources

License

Releases

No releases published

Packages

No packages published

Languages

You can’t perform that action at this time.