PHP code example of wmud / hyperf-lib

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

    

wmud / hyperf-lib example snippets


  [
    'safety' => [
        'cipher' => false, // 是否开启数据加密
        'sign' => false, // 是否开启签名验证
        'timeout' => 10, // 签名有效时间
        'access_key' => '', // AES密钥
        'public_key' => '', // RSA加密公钥
        'private_key' => '', // RSA解密私钥
    ]
  ]
  

  [
    'ciphertext' => '', // 密文
    'cipheriv' => '', // 加密初始化向量
  ]