asbamboo/openpay-example

There is no license information available for the latest version (dev-master) of this package.

openpay-example 是 asbamboo/openpay 项目的具体实现,是支付宝支付、微信支付等第三方支付聚合api接口的服务端代码

dev-master 2022-02-15 08:20 UTC

This package is not auto-updated.

Last update: 2024-05-07 19:42:58 UTC


README

  1. 简介
  2. linux下运行项目示例

简介

openpay-example 是 asbamboo/openpay 项目的具体实现,是支付宝支付、微信支付等第三方支付聚合api接口的服务端代码。

演示地址:http://demo.asbamboo.com/openpay-example/public/

linux下运行项目示例

必要条件: 需要安装 composer , php7.2以上版本

licy@licy-N501JW:/www$ composer create-project asbamboo/openpay-example -s dev

Installing asbamboo/openpay-example (dev-master e825d9f5f81cf69ed21d0dedfb39afd6391e1859)
  - Installing asbamboo/openpay-example (dev-master master): Cloning master from cache
Created project in /www/openpay-example
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Package operations: 58 installs, 0 updates, 0 removals
  - Installing psr/container (dev-master 014d250): Cloning 014d250dae from cache
  - Installing psr/http-message (dev-master f6561bf): Cloning f6561bf28d from cache
  - Installing asbamboo/autoload (1.0.1.x-dev 5552e41): Cloning 5552e4195e from cache

...

licy@licy-N501JW:/www$ cd openpay-example/

licy@licy-N501JW:/www/openpay-example$ ./vendor/bin/asbamboo-database asbamboo:database:schema-create

 !                                                                                                                      
 ! [CAUTION] This operation should not be executed in a production environment!                                         
 !                                                                                                                      

 Creating database schema...


 [OK] Database schema created successfully!                                                                             


licy@licy-N501JW:/www/openpay-example$ cd public

licy@licy-N501JW:/www/openpay-example/public$  php -S 127.0.0.1:8000

PHP 7.2.6 Development Server started at Sun Mar  3 15:23:03 2019
Listening on http://127.0.0.1:8000
Document root is /www/openpay-example/public
Press Ctrl-C to quit.

在浏览器访问 http://127.0.0.1:8000