twint-ag/sdk
最新稳定版本:1.7.0
Composer 安装命令:
composer require twint-ag/sdk
包简介
PHP SDK for TWINT
README 文档
README
PHP SDK for TWINT.
Development
Setup
- Run
make devto start the development environment based ondocker composeand enter a shell - Copy
.env.exampleto.envand configure your values - Run
make installto install composer dependencies
Tests
- Run
make test- Run
make wiremock-setuponce, if you want to set up the local WireMock mappings
- Run
- Run
make test-unitto run unit tests only - Run
make test-integrationto run integration tests only
All checks
- Run
make checkto run all checks (tests, static analysis, linting, codegen). This should be done before pushing changes. - Run
make static-analysisto run PHPStan - Run
make formatto apply auto-formatting
Documentation
- Run
make dev-docsto enter shell - Run
make docsto generate documentation
Code generation
Place new WSDL and XSD files in resources/wsdl directory and run make codegen to update the generated code.
Release
Run VERSION=… make tag, e.g. VERSION=1.0.0 make tag, to create a new release tag. This will also push the tag to
the remote repository and trigger synchronization with GitHub/Packagist.
Multi-version PHP development
The default PHP version for development is 8.1 but the SDK also supports 8.2. and 8.3. To switch the PHP version,
edit TWINT_SDK_PHP_VERSION in the .env file and run make restart to boot the development environment with the
selected PHP version.
统计信息
- 总下载量: 4.81k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 1
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2024-07-18