Download the PHP package xin/payment without Composer

On this page you can find all versions of the php package xin/payment. 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 payment

Payment | 统一化支付

介绍

你还在为微信支付或支付宝支付编写两套不同逻辑的代码而头疼吗?你还在为庞杂的参数记忆而苦恼吗?

让我们回归本源,重新定义统一支付器。

安装教程

composer require xin/payment

概述

这是一个基于 yansongda/pay 库的支付 SDK,提供了统一的接口来处理微信支付、支付宝、银联支付和抖音支付。SDK 支持 Laravel 和 ThinkPHP 框架。

核心组件

PaymentManager 类

PaymentManager 是主要的支付管理类,实现了 PaymentFactory 接口:

Factory 接口

定义了支付方式的统一接口:

PaymentType 常量类

定义了支付类型的常量:

支付方式实现

微信支付 (HasWechat Trait)

支付宝 (HasAlipay Trait)

银联支付 (HasUnipay Trait)

抖音支付 (HasDouyin Trait)

异常处理

PaymentNotConfigureException

PaymentInvalidConfigException

框架集成

Laravel 集成

ThinkPHP 集成

配置结构

使用方法

基本使用

多配置支持

选项参数

特殊功能

配置初始化

证书处理

配置验证

目录结构

这个 SDK 提供了一个统一、灵活且易于扩展的支付接口,支持主流的支付方式并集成了常用的 PHP 框架。

更多文档请参考【easypay文档


All versions of payment with dependencies

PHP Build Version
Package Version
Requires php Version >=7.1.9
xin/support Version ^1.0
xin/capsule Version ^1.0
yansongda/pay Version ^3.5
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 xin/payment contains the following files

Loading the files please wait ...