Aptg SMS client for Laravel

Maintainers

Details

github.com/UniSharp/sms

Source

Issues

Installs: 255

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 11

Forks: 0

Open Issues: 0

pkg:composer/unisharp/sms

dev-master 2018-10-30 07:59 UTC

This package is auto-updated.

Last update: 2025-09-15 17:34:41 UTC


README

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.