2017 © Pedro PelĂĄez
 

library tcu

Package for easing tcu integration with your admission system

image

coas/tcu

Package for easing tcu integration with your admission system

  • Tuesday, July 24, 2018
  • by Robys915
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Simple PHP wrapper to work with TCU api

How to use;, (*1)

Install through composer, (*2)

composer require coas/tcu  

Using the package, (*3)

Use Coas/TCU/TCU;

$tcu = new TCU(username, token, instutionCode, inJson);

username ( string ) = TCU username
token ( string ) = TCU secret token credential
instutionCode ( string ) = Institute code or null ( defaults to username )
inJson ( bool ) = Tells to return results as a json object, set to false return the original xml response

//Example
$response = $tcu->checkStatus(‘indexNumber’); // Returns XML response as a json object 

if you wish to return the original XML, (*4)

$tcu->inJson(false);

or pass the fourth parameter as false, (*5)

$tcu = new TCU(username, token, null, false);

Response, (*6)

$response = $tcu->add(category,indexF4, indexF6, otherForm4, otherFormSix );

$status = $response->RESPONSE->RESPONSEPARAMETERS->STATUS;
$code = $response->RESPONSE->RESPONSEPARAMETERS->ERROR_CODE;
$description = $response->RESPONSE->RESPONSEPARAMETERS->STATUS_DESCRIPTION;

Methods All methods as defined in the original TCU document API, (*7)

The Versions

24/07 2018

dev-master

9999999-dev

Package for easing tcu integration with your admission system

  Sources   Download

The Requires

 

by Amani