Download the PHP package dtyq/sdk-base without Composer
On this page you can find all versions of the php package dtyq/sdk-base. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download dtyq/sdk-base
More information about dtyq/sdk-base
Files in dtyq/sdk-base
Download dtyq/sdk-base
More information about dtyq/sdk-base
Files in dtyq/sdk-base
Please rate this library. Is it a good library?
Informations about the package sdk-base
sdk-base
Installing
Usage
详见 \Dtyq\SdkBase\Tests\SdkBaseTest
日志脱敏
LoggerProxy 默认会过滤所有结构化日志中的常见敏感 Header、查询参数和 JSON 字段,包括 Authorization、Cookie、password、token、ak、sk 等,因此请求和响应日志都会被统一处理。
可以通过配置追加敏感字段、修改脱敏占位符,并传入自定义过滤回调:
部分脱敏是默认模式,默认保留前后各 3 个字符。可以按业务需要调整保留长度:
例如 AKLTMzc1OTM3YzUyNzE2 会输出为 AKL***zE2。字符串长度不足以安全保留首尾时,仍会完整替换为 ***。
如需完整替换敏感值,可以显式启用完整脱敏模式:
日志脱敏默认开启。如需输出未经脱敏的原始日志,可以显式关闭:
License
MIT
All versions of sdk-base with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.1
ext-json Version *
psr/container Version *
psr/log Version *
psr/simple-cache Version *
psr/http-client Version *
adbario/php-dot-notation Version ^3.3|^2.4
ext-json Version *
psr/container Version *
psr/log Version *
psr/simple-cache Version *
psr/http-client Version *
adbario/php-dot-notation Version ^3.3|^2.4
The package dtyq/sdk-base contains the following files
Loading the files please wait ...