1. Go to this page and download the library: Download ella123/hyperf-sms library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
ella123 / hyperf-sms example snippets
# 同步发送
\Ella123\HyperfSms\Sms::to()->sendNow(smsable: new DomeSms())
# 同步发送(或队列)
\Ella123\HyperfSms\Sms::to()->send(smsable: new DomeSms())
# 队列发送
\Ella123\HyperfSms\Sms::to()->queue(smsable: new DomeSms(),queue: 'default')
# 队列延迟发送
\Ella123\HyperfSms\Sms::to()->later(smsable: new DomeSms(),delay: 3,queue: 'default')