PHP code example of qingbing / pf-tools-replace-setting

1. Go to this page and download the library: Download qingbing/pf-tools-replace-setting 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/ */

    

qingbing / pf-tools-replace-setting example snippets



// 测试案例
$content = \Tools\ReplaceSetting::getInstance('mail_findPassword')->getContent([
    '{{username}}' => '用户名',
    '{{email}}' => '[email protected]',
    '{{password_back_link}}' => 'http://www.phpcorner.net',
    '{{expire_time}}' => '2019-10-10',
]);

echo $content;