Download the PHP package znzabl/waiter without Composer

On this page you can find all versions of the php package znzabl/waiter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package waiter

waiter

第三方支付接口组件

安装

composer require znzabl/waiter

使用示例:


require_once('vendor/autoload.php');

use Waiter\Waiter;
$config = [
    'app_id'     => '你的appid',
    'mch_id'     => '你的mch_id',
    'pay_key'    => '你的pay_key',
    'app_secret' => '你的app_secret',
    'mode'       => 'normal'
];
$parameter = [
    'body'          => '微信小程序支付',
    'attach'        => 'xxxxx,
    'out_trade_no'  => 1234231423452,
    'total_fee'     => 1,
    'openid'        => '用户的openid',
    'notify_url'    => '你的回调地址',
];

$encryptedData = 'zcdzcdasdcasdc';
$iv            = 'asdcasddc';
$sessionKey    = 'zsxcasdca';
$data          = [];
//微信解密秘文
//Waiter::Wechat($config)->Login()->Support()->decryptData($encryptedData, $iv, $sessionKey, &$data);
//var_dump($data);exit;
//微信小程序支付
//$result = Waiter::Wechat($config)->Payment()->Mini()->pay($parameter);
//var_dump($result);exit;
//微信小程序获取token
//$result = Waiter::Wechat($config)->Login()->Mini()->getToken('081Zvk000XEGdL1NOb300ODYff1Zvk0G');
//var_dump($result);exit;

$config = [
    'app_id'        => '你的支付宝appid',
    'private_key'   => '你的支付宝私钥',
    'public_key'    => '你的支付宝公钥',
    'aes_key'       => '你的密文解密密钥(解密密文时使用)',
    'mode'          => 'normal',
    'notify_url'    => '你的回调地址',
];
$parameter = [
    'body'          => '支付宝小程序订单支付',
    'subject'       => '订单支付',
    'attach'        => 'xxxx',
    'out_trade_no'  => 1234231423452,
    'total_amount'  => 0.01,
    'buyer_id'      => 2088302191714811,
];
//支付宝解密秘文
//$result = Waiter::Alipay($config)->Login()->Support()->decryptData('YpPx1DhmPFKfMWMUzzchE8rTRu7yFd44yVN+9+e/ITC+rIVD1OhwJ0Ts8USaRgPO9BIv5UkI40lVhKEeyFEpBA==');
//var_dump($result);exit;
//支付宝回调验证
//$result = Waiter::Alipay($config)->Payment()->Support()->verify(['sign'=>'xzasdcasdc']);
//var_dump($result);exit;
//支付宝小程序支付
//$result = Waiter::Alipay($config)->Payment()->Mini()->pay($parameter);
//print_r($result);exit;
//支付宝小程序获取token
$result = Waiter::Alipay($config)->Login()->Mini()->getToken('f5326b49b82c4913bbe3978d6bc7WX81');
var_dump($result);exit;

All versions of waiter with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0.0
ext-openssl Version *
ext-simplexml Version *
ext-libxml Version *
ext-json Version *
ext-bcmath Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package znzabl/waiter contains the following files

Loading the files please wait ....