PHP code example of yuyue8 / tp_driver

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

    

yuyue8 / tp_driver example snippets


$pay = new Pay();
$pay->send('123456');

$pay = new Pay('ali');
$pay->send('123456');

只创建基类
php think make:driver /app/driver/pay

创建基类和策略类
php think make:driver /app/driver/pay ali

pay
    -storage
        -Ali.php
    -BasePay.php
    -Pay.php