Download the PHP package kylin987/jd-aces-php-sdk without Composer
On this page you can find all versions of the php package kylin987/jd-aces-php-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package jd-aces-php-sdk
JD ACES PHP SDK
京东 ACES 数据加密 PHP SDK - 标准 Composer 包版本
📦 安装
方式一:Composer 安装(推荐)
方式二:直接引用
🚀 快速开始
1. 基础使用
2. 数据加密/解密(TDE)
3. 使用 Bootstrap(可选)
⚙️ 配置说明
常量配置
在引入 SDK 前可定义以下常量:
JdClient 配置
| 参数 | 说明 | 默认值 |
|---|---|---|
serverUrl |
API 网关地址 | https://api.jd.com/routerjson |
appKey |
应用 AppKey | 必填 |
appSecret |
应用 AppSecret | 必填 |
accessToken |
用户访问令牌 | 选填 |
connectTimeout |
连接超时 (秒) | 0 (不限制) |
readTimeout |
读取超时 (秒) | 0 (不限制) |
version |
API 版本 | 2.0 |
format |
返回格式 | json |
📁 目录结构
🔧 开发模式
运行测试
代码规范
📝 注意事项
- PHP 版本: 要求 PHP >= 7.4
- 必需扩展: curl, json
- 推荐缓存: APCu 或 Yac(用于 TDE 密钥缓存)
- 生产环境: 建议将
JD_SDK_DEV_MODE设为false - 日志权限: 确保日志目录可写
🐛 常见问题
1. 缓存扩展未启用
解决: 安装并启用 APCu 或 Yac 扩展
2. 日志目录无权限
📄 License
MIT License
🔗 相关链接
🤝 贡献
欢迎提交 Issue 和 Pull Request!
- Fork 本仓库
- 创建特性分支 (
git checkout -b feature/AmazingFeature) - 提交更改 (
git commit -m 'Add some AmazingFeature') - 推送到分支 (
git push origin feature/AmazingFeature) - 开启 Pull Request
All versions of jd-aces-php-sdk with dependencies
PHP Build Version
Package Version
Requires
php Version
>=7.4
monolog/monolog Version ^1.24 || ^2.0 || ^3.0
netresearch/jsonmapper Version ^1.6 || ^2.0 || ^3.0 || ^4.0
ext-curl Version *
ext-json Version *
monolog/monolog Version ^1.24 || ^2.0 || ^3.0
netresearch/jsonmapper Version ^1.6 || ^2.0 || ^3.0 || ^4.0
ext-curl Version *
ext-json Version *
The package kylin987/jd-aces-php-sdk contains the following files
Loading the files please wait ...