Download the PHP package zsgf/client without Composer

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

ZSGF-Client PHP SDK

Packagist Version

一个功能强大的PHP SDK,为您的应用提供用户管理、支付、存储、微信集成等完整的后端服务解决方案。

📋 目录

🚀 快速开始

5分钟快速上手

第一步:安装SDK

第二步:初始化配置

第三步:调用API

📦 安装配置

环境要求

Composer安装

初始化配置

🎯 核心功能

功能模块 API类 主要用途
👤 用户管理 UserApi 注册、登录、资料管理
💰 支付服务 AlipayApi 支付宝支付集成
💬 微信集成 WechatApi 小程序、公众号功能
📦 数据存储 StorageApi 云端数据库操作
📁 文件管理 FileApi 文件上传下载管理
🔐 访问控制 AccessTokenApi 令牌权限管理
📱 移动端 OrderApi 订单系统管理

💡 实用示例

用户注册登录

支付宝支付

微信小程序集成

数据存储操作

文件上传管理

🛠️ 错误处理

统一错误处理封装

重试机制

📚 API参考

🔗 快速导航

👤 用户管理 (UserApi) | 方法 | HTTP | 路径 | 说明 | |------|------|------|------| | `userSignUp()` | POST | `/User/{appKey}/SignUp` | 用户注册 | | `userSignIn()` | POST | `/User/{appKey}/SignIn` | 密码登录 | | `userEmailSignIn()` | POST | `/User/{appKey}/EmailSignIn` | 邮箱登录 | | `userPhoneSignIn()` | POST | `/User/{appKey}/PhoneSignIn` | 手机登录 | | `userProfile()` | GET | `/User/{appKey}/Profile` | 获取个人资料 | | `userUpdateProfile()` | PUT | `/User/{appKey}/Profile` | 更新个人资料 | | `userResetPwd()` | POST | `/User/{appKey}/ResetPwd` | 重置密码 | | `userSendEmailCode()` | POST | `/User/{appKey}/SendEmailCode` | 发送邮箱验证码 | | `userSendSMSCode()` | POST | `/User/{appKey}/SendSMSCode` | 发送手机验证码 |
💰 支付服务 (AlipayApi) | 方法 | HTTP | 路径 | 说明 | |------|------|------|------| | `alipayCreateOrder()` | POST | `/Alipay/{appKey}/CreateOrder` | 创建当面付订单 | | `alipayCreateOrderPagePay()` | POST | `/Alipay/{appKey}/CreateOrderPagePay` | 创建PC支付订单 | | `alipayCreateOrderWapPay()` | POST | `/Alipay/{appKey}/CreateOrderWapPay` | 创建WAP支付订单 | | `alipayOrderDetail()` | GET | `/Alipay/{appKey}/OrderDetail` | 获取订单详情 | | `alipayOrderRefund()` | POST | `/Alipay/{appKey}/OrderRefund` | 发起订单退款 |
💬 微信服务 (WechatApi) | 方法 | HTTP | 路径 | 说明 | |------|------|------|------| | `wechatJSCode2Session()` | GET | `/Wechat/{appKey}/JSCode2Session` | 小程序登录验证 | | `wechatUserInfo()` | GET | `/Wechat/{appKey}/UserInfo` | 获取公众号用户信息 | | `wechatSubscribeSend()` | POST | `/Wechat/{appKey}/SubscribeSend` | 发送小程序订阅消息 | | `wechatDecrypt()` | GET | `/Wechat/{appKey}/Decrypt` | 解密小程序用户数据 | | `wechatWXACodeGet()` | POST | `/Wechat/{appKey}/WXACodeGet` | 获取小程序码 |
📦 数据存储 (StorageApi) | 方法 | HTTP | 路径 | 说明 | |------|------|------|------| | `storagePost()` | POST | `/Storage/{appKey}/{table}` | 添加数据 | | `storageList()` | GET | `/Storage/{appKey}/{table}` | 查询数据列表 | | `storageDetail()` | GET | `/Storage/{appKey}/{table}/{id}` | 获取数据详情 | | `storagePut()` | PUT | `/Storage/{appKey}/{table}/{id}` | 更新数据 | | `storageDelete()` | DELETE | `/Storage/{appKey}/{table}/{id}` | 删除数据 | | `storageAggregate()` | GET | `/Storage/{appKey}/{table}/Aggregate` | 聚合查询 |
📁 文件管理 (FileApi) | 方法 | HTTP | 路径 | 说明 | |------|------|------|------| | `fileUpload()` | POST | `/File/{appKey}/Upload` | 上传文件 | | `files()` | GET | `/File/{appKey}` | 获取文件列表 | | `fileCreateFolder()` | POST | `/File/{appKey}/CreateFolder` | 创建文件夹 | | `fileRename()` | POST | `/File/{appKey}/Rename` | 重命名文件 | | `fileDelete()` | DELETE | `/File/{appKey}` | 删除文件/文件夹 |

🏷️ 其他API服务

❓ 常见问题

❓ 如何获取访问令牌? 访问令牌需要通过以下方式获取: 1. **管理后台**: 登录ZSGF管理后台 → 应用管理 → 创建/查看应用 → 获取令牌 2. **技术支持**: 联系客服或技术支持人员 3. **API接口**: 使用应用密钥通过OAuth接口获取
❓ 支持哪些PHP版本? - **最低要求**: PHP 7.4 - **推荐版本**: PHP 8.0 或更高 - **测试版本**: PHP 7.4, 8.0, 8.1, 8.2 升级PHP版本可以获得更好的性能和安全性。
❓ 如何设置请求超时?
❓ 如何开启调试模式?
❓ 如何处理并发请求?
❓ 如何处理文件上传进度?
❓ 如何实现请求签名验证?

📞 技术支持

需要帮助?我们提供多种支持渠道:

支持方式 联系信息
📚 技术文档 完整API文档
🐛 问题反馈 GitHub Issues

反馈信息模板

在寻求技术支持时,请提供以下信息以便快速定位问题:



All versions of client with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4 || ^8.0
ext-curl Version *
ext-json Version *
ext-mbstring Version *
guzzlehttp/guzzle Version ^7.3
guzzlehttp/psr7 Version ^1.7 || ^2.0
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 zsgf/client contains the following files

Loading the files please wait ...