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.

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 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
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 dtyq/sdk-base contains the following files

Loading the files please wait ...