PHP SDK for TWINT.
- Run
just devto start the development environment based ondocker composeand enter a shell - Copy
.env.distto.envand configure your values - Run
just installto install composer dependencies
- Run
just test- Run
just wiremock-setuponce, if you want to set up the local WireMock mappings
- Run
- Run
just test-unitto run unit tests only - Run
just test-integrationto run integration tests only
- Run
just checkto run all checks (tests, static analysis, linting, codegen). This should be done before pushing changes. - Run
just static-analysisto run PHPStan - Run
just formatto apply auto-formatting
- Run
just dev-docsto enter shell - Run
just docsto generate documentation
Place new WSDL and XSD files in resources/wsdl directory and run just codegen to update the generated code.
Run just tag <version>, e.g. just tag 1.0.0, to create a new release tag. This will also push the tag to
the remote repository and trigger synchronization with GitHub/Packagist.
The default PHP version for development is 8.1 but the SDK also supports 8.2, 8.3, and 8.4. To switch the PHP version,
edit TWINT_SDK_PHP_VERSION in the .env file and run just restart to boot the development environment with the
selected PHP version.
The SSL engine can be changed via TWINT_SDK_PHP_CURL_SSL_ENGINE in .env (options: openssl, nss, nss-nobignum,
gnutls). The pinned base image for each combination is in resources-dev/php/ and managed by Renovate.