twint-ag / sdk
PHP SDK for TWINT
1.4.0
2024-10-25 07:56 UTC
Requires
- php: >=8.1
- ext-dom: *
- ext-openssl: *
- ext-xsl: *
- azjezz/psl: ^2.5.0
- danielburger1337/sha3-shake: ^1.0
- guzzlehttp/guzzle: ^7.4
- php-soap/engine: ^2.7
- php-soap/ext-soap-engine: ^1.4
- php-soap/psr18-transport: ^1.5.0
- psr/clock: ^1.0
- veewee/xml: ^3.0.0
- webimpress/safe-writer: ^2.0
Requires (Dev)
- ext-xdebug: *
- laminas/laminas-code: ^4.14.0
- nikic/php-parser: ^4.19.4
- php-soap/wsdl-reader: ^0.17.0
- php-standard-library/phpstan-extension: ^1.1.0
- phpro/soap-client: ^3.3.0
- phpstan/phpstan: ^1.12.7
- phpstan/phpstan-strict-rules: ^1.6.1
- phpunit/phpunit: ^10.5.37
- roave/better-reflection: ^6.25.0
- slevomat/coding-standard: ^8.15.0
- symfony/clock: ^6.4.8
- symfony/dotenv: ^6.4.12
- symfony/event-dispatcher: ^6.4.8
- symfony/finder: ^6.4.11
- symplify/easy-coding-standard: ^12.3.6
- wiremock-php/wiremock-php: dev-cloud-support as 2.39.0
Conflicts
- phpro/soap-client: <3.3.0 || >=4.0.0
README
PHP SDK for TWINT.
Development
Setup
- Run
make dev
to start the development environment based ondocker compose
and enter a shell - Copy
.env.example
to.env
and configure your values - Run
make install
to install composer dependencies
Tests
- Run
make test
- Run
make wiremock-setup
once, if you want to set up the local WireMock mappings
- Run
- Run
make test-unit
to run unit tests only - Run
make test-integration
to run integration tests only
All checks
- Run
make check
to run all checks (tests, static analysis, linting, codegen). This should be done before pushing changes. - Run
make static-analysis
to run PHPStan - Run
make format
to apply auto-formatting
Documentation
- Run
make dev-docs
to enter shell - Run
make docs
to 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.