PHP code example of gogery / yzx

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

    

gogery / yzx example snippets


	
	$config = [
		'accountSid' => 'f82sfdsdf815f79sdf85745c5b50b0bb223e8' ,
		'token' => 'f298b645sfsd748dfa4csdf349b0a23fb722',
		'appId' => 'e0406dsdfdssdfa7b40a28f8d114ec12c932b'
	];
	$client = new Yzx($config);

	$phoneNumber = '13672431596'; // 手机号
	$param = '123'; // 验证码
	$data = $client->sendRegisterMessage($phoneNumber, $param);