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.

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 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

📁 目录结构

🔧 开发模式

运行测试

代码规范

📝 注意事项

  1. PHP 版本: 要求 PHP >= 7.4
  2. 必需扩展: curl, json
  3. 推荐缓存: APCu 或 Yac(用于 TDE 密钥缓存)
  4. 生产环境: 建议将 JD_SDK_DEV_MODE 设为 false
  5. 日志权限: 确保日志目录可写

🐛 常见问题

1. 缓存扩展未启用

解决: 安装并启用 APCu 或 Yac 扩展

2. 日志目录无权限

📄 License

MIT License

🔗 相关链接

🤝 贡献

欢迎提交 Issue 和 Pull Request!

  1. Fork 本仓库
  2. 创建特性分支 (git checkout -b feature/AmazingFeature)
  3. 提交更改 (git commit -m 'Add some AmazingFeature')
  4. 推送到分支 (git push origin feature/AmazingFeature)
  5. 开启 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 *
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 kylin987/jd-aces-php-sdk contains the following files

Loading the files please wait ...