Skip to content

phwoolcon/sms-agent

sms-agent

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

SMS Sending Agent

1. Install

Install as a phwoolcon package

git clone git@github.com:phwoolcon/bootstrap.git sms-agent
cd sms-agent
bin/import-package git@github.com:phwoolcon/sms-agent.git

2. Usage

2.1. Sending SMS

2.1.1 Get Sender Account

Access the sender's website and create an account before use this software.

List of senders:

2.1.2. Configure

Create production config, choose the default sender(sms-cn by default), and fill up the sender account info:

cp app/config/sms-agent.php app/config/production/sms-agent.php
vim app/config/production/sms-agent.php

2.1.3. Compose and Send

use SmsAgent;

$mobile = '13579246801';
$content = 'Test message';

SmsAgent::send($mobile, $content)

2.2. Self Hosted Agent

You can build a self hosted agent to centralize SMS sending stubs for all your applications, with package phwoolcon/sms-agent-admin.

3. Change log

Please see CHANGELOG for more information on what has changed recently.

4. Contributing

Please see CONTRIBUTING and CODE_OF_CONDUCT for details.

5. Security

If you discover any security related issues, please email fishdrowned@gmail.com instead of using the issue tracker.

6. Credits

7. License

The Apache License, Version 2.0. Please see License File for more information.

About

SMS Sending Agent

Resources

License

Code of conduct

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages