axytos / financial-services-api-sdk
Requires
- php: >=5.6.0
Requires (Dev)
- phpunit/phpunit: ^5.7 || ^11.1
- dev-main
- 1.7.0-alpha+20240723.3
- 1.6.19+20240725.2
- 1.6.19-rc+20240724.12
- 1.6.18+20240724.7
- 1.6.18-rc+20240711.2
- 1.6.17+20240724.5
- 1.6.17-rc+20240710.1
- 1.6.16+20240724.3
- 1.6.16-rc+20240708.1
- 1.6.15+20240709.2
- 1.6.15-rc+20240614.1
- 1.6.14-rc+20240613.1
- 1.6.14-alpha+20240610.58
- 1.6.13-rc+20240610.57
- 1.6.12-rc+20240607.20
- 1.6.11+20240611.1
- 1.6.11-rc+20240607.3
- 1.6.10+20240610.59
- 1.6.9+20240604.2
- 1.6.8+20240524.3
- 1.6.7+20240523.2
- 1.6.6+20240522.3
- 1.6.5+20240517.1
- 1.6.4+20240516.3
- 1.6.3+20240506.2
- 1.6.2+20240424.4
- 1.6.1+20240415.2
- 1.6.0+20240409.2
- 1.5.0+20240409.1
- 1.4.21+20240322.1
- 1.4.20+20240308.1
- 1.4.19+20240307.1
- 1.4.18+20240227.1
- 1.4.17+20240226.1
- 1.4.16+20240214.1
- 1.4.15+20240213.2
- 1.4.14+20240213.1
- 1.4.12+20240131.1
- 1.4.11+20240130.1
- 1.4.10+20231201.1
- 1.4.9+20231115.1
- 1.4.8+20230721.1
- 1.4.7+20230511.3
- 1.4.6+20230505.2
- 1.4.5+20230505.1
- 1.4.4+20230320.1
- 1.4.3+20230310.1
- 1.4.2+20230308.1
- 1.4.1+20230225.2
- 1.4.0+20230225.1
- 1.3.0+20230201.3
- 1.2.0+20221121.2
- 1.1.0+20221028.2
- 1.0.0
- dev-stage
- dev-develop
This package is auto-updated.
Last update: 2024-09-25 13:50:31 UTC
README
此包提供围绕api.axytos.com生成的OpenAPI客户端代码的作用域/嵌入包装。
一般信息
此包应与PHP 5.6兼容,直到最新的PHP版本。
OpenAPI客户端代码是由
- openapitools/openapi-generator-cli的最近版本生成的
- 通过humbug/php-scoper进行作用域处理
- 使用rectorphp/rector降级到PHP 5.6
使用来自
安全性
OpenAPI客户端代码由openapitools/openapi-generator-cli生成并包含第三方依赖项。
出于安全原因,使用的是最近版本的生成器,其中引入的第三方依赖项没有已知的安全警告。
最近版本的第三方依赖项需要降级才能与PHP 5.6兼容。这可以通过rectorphp/rector自动完成,这只会影响语言级别兼容性。依赖项的逻辑安全措施不应受到影响。
如果第三方依赖项依赖于语言级别的安全功能(如random_bytes
),则通过以下polyfills进行替代
可以通过以下方式检查第三方依赖项的安全警告
PHP兼容性详细信息
从集合论的角度来看,代码应该与PHP 5.6、...、PHP 8.1的交集语言兼容。
这意味着我们无法使用PHP的特性...
- ...存在于PHP 5.6中但不存在于PHP的新版本中
- ...存在于PHP的新版本中但不存在于PHP 5.6中
使用rectorphp/rector自动降级到PHP 5.6。
然而,仍然存在一些不兼容性,需要以不同的方式解决。
解决的不兼容性
(1) hrtime
见: https://php.ac.cn/manual/de/function.hrtime.php
hrtime
用于
guzzlehttp/guzzle/src/Utils.php
hrtime
仅在PHP的当前版本中存在时使用。无需进行调整。
(2) throw
在__toString
内部
见: https://php.ac.cn/manual/en/language.oop5.magic.php#object.tostring
throw
在__toString
内部用于
guzzlehttp/psr7/src/PumpStream.php
guzzlehttp/psr7/src/AppendStream.php
guzzlehttp/psr7/src/StreamDecoratorTrait.php
guzzlehttp/psr7/src/Stream.php
guzzlehttp/psr7/src/FnStream.php
根据使用的PHP版本抛出异常。无需调整。
(3) Error
和TypeError
见: https://php.ac.cn/manual/de/class.error.php
Error
和TypeError
用于
guzzlehttp/psr7/src/Header.php
guzzlehttp/guzzle/src/Utils.php
guzzlehttp/guzzle/src/Handler/MockHandler.php
symfony/polyfill作为polyfill使用。
(4) random_bytes
参见: https://php.ac.cn/manual/zh/function.random-bytes.php
random_bytes
函数用于
guzzlehttp/psr7/src/MultipartStream.php
symfony/polyfill作为polyfill使用。