PHP code example of hsky / laravel-1xinxi

1. Go to this page and download the library: Download hsky/laravel-1xinxi 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/ */

    

hsky / laravel-1xinxi example snippets


	'providers' => [
		...
		Hsky\XinXi\XinXiServiceProvider::class
	]

	'aliases' => [
		'Xinxi' => Hsky\XinXi\Facades\XinXiFacade::class,
	]

	/**
	 * 支持多手机号发送
	 *  @param  $verify  string 验证码
	 *  @param  $mobile  string|array
	 *  @param  $sendTime  datetime  发送时间 
	 *  @param  $extno  int  扩展码
	 */
	Xinxi::sendNormalInfo($verify, $mobile, $sendTime = '', $extno = '');

	/**
	 * 支持多手机号发送
	 *  @param  $content  string 验证码
	 *  @param  $mobile  string|array
	 *  @param  $sendTime  datetime  发送时间 
	 *  @param  $extno  int  扩展码
	 */
	Xinxi::sendCustomInfo($content, $mobile, $sendTime = '', $extno = '');