twint-ag / sdk
PHP SDK for TWINT
Installs: 1 048
Dependents: 2
Suggesters: 0
Security: 0
Stars: 1
Watchers: 0
Forks: 1
Open Issues: 0
Requires
- php: >=8.1
- ext-dom: *
- ext-intl: *
- ext-openssl: *
- ext-xsl: *
- azjezz/psl: ^2.5.0 || ^3.0
- composer/ca-bundle: ^1.5
- 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
- phpseclib/phpseclib: ^3.0
- psr/clock: ^1.0
- veewee/xml: ^3.0.0
- webimpress/safe-writer: ^2.0
Requires (Dev)
- ext-xdebug: *
- laminas/laminas-code: ^4.16.0
- nikic/php-parser: ^4.19.4 || ^5.0.0
- php-soap/wsdl-reader: ^0.17.0 || ^0.18.0 || ^0.19.0 || ^0.20.0 || ^0.21.0 || ^0.22.0 || ^0.23.0 || ^0.24.0
- php-standard-library/phpstan-extension: ^2.0.0
- phpro/soap-client: 3.3.0 || 3.4.0
- phpstan/phpstan: ^2.1.6
- phpstan/phpstan-strict-rules: ^2.0.3
- phpunit/phpunit: ^10.5.45
- roave/better-reflection: ^6.25.0
- rregeer/phpunit-coverage-check: ^0.3.1
- slevomat/coding-standard: ^8.16.0
- symfony/clock: ^6.4.13
- symfony/dotenv: ^6.4.16
- symfony/event-dispatcher: ^6.4.13
- symfony/filesystem: ^6.4.13
- symfony/finder: ^6.4.17
- symplify/easy-coding-standard: ^12.5.8
- 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.