PHP code example of chxj1992 / yimei-sms
1. Go to this page and download the library: Download chxj1992/yimei-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/ */
chxj1992 / yimei-sms example snippets
$config = [
'gwUrl' => 'http://sdk4rptws.eucp.b2m.cn:8080/sdk/SDKService',
'serialNumber' => '6SDK-EMY-6688-AAAAA',
'password' => '123456',
'sessionKey' => '123456',
];
$client = Chxj1992\YimeiSms\App\ClientFactory::instance($config);
$client->sendSMS(array('15528280000'),"短信内容")