PHPackages                             coas/tcu - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. coas/tcu

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

coas/tcu
========

Package for easing tcu integration with your admission system

07[2 PRs](https://github.com/boraone/coas/pulls)PHP

Since Jul 3Pushed 3y ago1 watchersCompare

[ Source](https://github.com/boraone/coas)[ Packagist](https://packagist.org/packages/coas/tcu)[ RSS](/packages/coas-tcu/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (3)Used By (0)

Simple PHP wrapper to work with TCU api
=======================================

[](#simple-php-wrapper-to-work-with-tcu-api)

How to use;

Install through composer

```
composer require coas/tcu

```

Using the package

```
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

```
$tcu->inJson(false);

```

or pass the fourth parameter as false

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

```

Response

```
$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

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/91d92497dde52708b5a6f8a1af2514e49ee683540af311a06805a8fec6ccb497?d=identicon)[Robys915](/maintainers/Robys915)

---

Top Contributors

[![Robys915](https://avatars.githubusercontent.com/u/9832242?v=4)](https://github.com/Robys915 "Robys915 (29 commits)")

### Embed Badge

![Health badge](/badges/coas-tcu/health.svg)

```
[![Health](https://phpackages.com/badges/coas-tcu/health.svg)](https://phpackages.com/packages/coas-tcu)
```

###  Alternatives

[infinety-es/config-manager

Package to edit and view config files

112.4k](/packages/infinety-es-config-manager)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
