Download the PHP package twint-ag/sdk without Composer

On this page you can find all versions of the php package twint-ag/sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package sdk

TWINT SDK

PHP SDK for TWINT.

Development

Setup

Tests

Tests are split into two lanes. The hermetic lane runs against WireMock or against nothing at all, and CI runs it on the full PHP/SSL matrix. The empirical lane holds the tests that talk to the real TWINT API, marked #[Group('empirical')], and CI runs one job per SSL engine.

Reaching the real TWINT API is opt-in: unless TWINT_SDK_TESTS_EMPIRICAL is set, any request not aimed at WireMock fails. So a plain vendor/bin/phpunit cannot touch the real API, and just test-hermetic needs no flag at all. If a new test does reach it, either stub the SOAP operation with enableWireMockForSoapMethod() or mark the test #[Group('empirical')] and run it with just test-empirical.

Whenever the real API is permitted, every response is written to build/empirical-responses.log as one JSON object per line, because ext-soap reduces any non-XML response to looks like we got no XML document and hides the status code and body that explain it. The CI empirical jobs upload it as an artifact, so a failure can be read back with e.g.

Set TWINT_SDK_TESTS_EMPIRICAL_LOG to a path to write it from any other recipe.

All checks

Documentation

Code generation

Place new WSDL and XSD files in resources/wsdl directory and run just codegen to update the generated code.

Release

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.

Multi-version PHP development

The default PHP version for development is 8.1 but the SDK also supports 8.2, 8.3, 8.4, and 8.5. 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.


All versions of sdk with dependencies

PHP Build Version
Package Version
Requires php Version >=8.1
ext-xsl Version *
ext-dom Version *
ext-openssl Version *
ext-intl Version *
php-soap/engine Version ^2.7
php-soap/ext-soap-engine Version ^1.4
guzzlehttp/guzzle Version ^7.4 || ^8.0
webimpress/safe-writer Version ^2.0
twint-ag/psl-compat Version ^1.0 || ^2.0
psr/clock Version ^1.0
veewee/xml Version ^3.0.0
danielburger1337/sha3-shake Version ^1.0
composer/ca-bundle Version ^1.5
phpseclib/phpseclib Version ^3.0
phpseclib/bcmath_compat Version ^2.0
psr/event-dispatcher Version ^1.0
psr/log Version ^1.0 || ^2.0 || ^3.0
php-soap/xml Version ^1.4
php-http/discovery Version ^1.12
psr/http-client-implementation Version ^1.0
psr/http-factory-implementation Version ^1.0
psr/http-message-implementation Version ^1.0
psr/http-message Version ^1.0.1|^2.0
php-http/client-common Version ^2.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package twint-ag/sdk contains the following files

Loading the files please wait ...