1. Go to this page and download the library: Download atishoo/paylib 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/ */
atishoo / paylib example snippets
use Atipay\alipay\Alipay;
$config = ['partner'=>'商户号','private_key'=>'私钥','public_key'=>'公钥','input_charset'=>'字符集','sign_type'=>'签名类型','service','cacert','transport'];
$alipay = new Alipay($config);