Download the PHP package muchiiu/alipaytool without Composer

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

Laravel支付宝小程序扩展包

为什么要写一个laravel扩展包? 最近支付宝小程序允许个人开发者开放申请,但是对于官方给的PHP版SDK没有composer包管理,对于laravel开放者来说,这是一个很大问题,需要自己动手拆开嵌入到laravel项目中,因此产生做出一个扩展包的形式。

目前支持的接口功能

使用方法

运行以下命令以获取最新版本:

将服务提供者添加到配置文件中的providers数组中config/app.php,如下所示:

发布配置文件

此时会生成config/alipaytool.phpstorage/pem/public.txtstorage/pem/private.txt文件。

配置AppID、支付宝公钥及应用私钥

在根目录.env文件中添加如下代码

storage/pem/public.txtstorage/pem/private.txt文件中分别填入支付宝公钥及应用私钥(如何生成支付宝公钥及应用私钥?)

快速入门

先了解下授权流程吧。官网详细介绍(如果之前做个微信小程序开发的话,可以忽略啦,流程跟微信的差不多。)

先是小程序端通过my.getAuthCode方法得到authcode,并将其传入后端,后端调用alipay.system.oauth.token接口得到access_token以及支付宝用户的userIdaccess_token再配合调用alipay.user.info.share方法即可解密得到用户详细信息。

使用案例


All versions of alipaytool with dependencies

PHP Build Version
Package Version
No informations.
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 muchiiu/alipaytool contains the following files

Loading the files please wait ....