Download the PHP package verzth/tcx-client without Composer

On this page you can find all versions of the php package verzth/tcx-client. 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 tcx-client

TCX Client compatibility TCX v3.0.0 - Authentication Module for Client-Server Transaction (One Way - Two Way).

TCX is authentication module to secure API Server.

It's adapt OAuth2 scheme, but it use more simplify scheme which provide authentication for client-server without need to define scopes.

  1. Authentication Type, TCX support three ways authentication type:

    • One Way Transaction Code (OWTC): Client only need to use app_id and app_public to access Server APIs.
    • Two Way Transaction Code (TWTC): Client has to use app_id and app_public to get access token, then it can be used to access APIs.
    • Free Transaction Code (FTC): Client use master token to access APIs, without need to request token for every requests. You need to generate Master token manually.

    Client need to specify type by sending X-TCX-TYPE header in every APIs request.

  2. How to generate credentials:

    • app_pass or X-TCX-APP-PASS, it can be generate by hashing plain of joined token (param, time, or none), application public key, and client dynamic token with SHA1. Client need to append the given dynamic token to hash result by splitting with colon (:) symbol, then encrypt it with base64.

      • Param base

        Sample Parameter:

        Expected Token:

      • Time base

      Sample

      • None, just using application password and client dynamic token.
    • token or X-TCX-TOKEN, it's provided when Client authorizing to server, but you need to encrypt it with base64.
  3. Authentication Headers.

    • Type OWTC:
      • 'X-TCX-TYPE': 'OWTC'.
      • 'X-TCX-APP-ID': Client ID.
      • 'X-TCX-APP-PASS': Client Password.
    • Type TWTC:
      • 'X-TCX-TYPE': 'TWTC'.
      • 'X-TCX-APP-ID': Client ID.
      • 'X-TCX-APP-PASS': Client Password.
      • 'X-TCX-TOKEN': Access Token, obtained by doing authorization.
    • Type FTC:
      • 'X-TCX-TYPE': 'FTC'.
      • 'X-TCX-APP-ID': Client ID.
      • 'X-TCX-APP-PASS': Client Password.
      • 'X-TCX-TOKEN': Master Access Token.
  4. Available Function.

    • getID() - Get Application ID.
    • getSecret() - Get Application Secret Key.
    • getPublic() - Get Application Public Key.
    • getTokenType() - Get Token authorization type mode.
    • isDebug() - Check debugging status.
    • getTCXPass(&$params) - Get Application Password.
    • getTCXMasterKey($encrypt=false) - Get Master Token key.
    • getTCXAccess($pass, $datetime=false, $encrypt=false) - Get Access Token key.
  5. Response Status.

    Status Number Code Message Note
    0 705000 TCXREQ TCX Authentication Required Provide Authentication Header
    0 205001 TCXRJC TCX Authentication Rejected X-TCX-Type not supported or disabled
    0 405002 TCXAFX TCX Authentication Failed X-TCX-App-ID not found, invalid, or inactive
    0 505003 TCXPFX TCX Pass did not match X-TCX-App-Pass not passed, crosscheck point 2
    0 505004 TCXMKF TCX Master Key did not valid Check the master access key (Only FTC)
    0 505005 TCXTFX TCX Token did not valid Check the access key (Only TWTC)

    Sample Response:


All versions of tcx-client with dependencies

PHP Build Version
Package Version
Requires php Version >=7.0
illuminate/support Version ^5.6
illuminate/http Version ^5.6
symfony/http-foundation Version ^4
symfony/http-kernel Version ^4
ixudra/curl Version ^6.16
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 verzth/tcx-client contains the following files

Loading the files please wait ....