PHPackages                             uicosss/aits\_term\_query - 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. [API Development](/categories/api)
4. /
5. uicosss/aits\_term\_query

ActiveLibrary[API Development](/categories/api)

uicosss/aits\_term\_query
=========================

PHP Wrapper API for the AITS Term Query API

0.0.2(1y ago)05MITPHPPHP ^8.2

Since Nov 25Pushed 1y agoCompare

[ Source](https://github.com/uicosss/aits_term_query)[ Packagist](https://packagist.org/packages/uicosss/aits_term_query)[ RSS](/packages/uicosss-aits-term-query/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

University of Illinois
======================

[](#university-of-illinois)

AITS - Term Query
-----------------

[](#aits---term-query)

PHP library for using the AITS Term Query API. Contact AITS for additional implementation details.

Usage
-----

[](#usage)

To use the library, you need to:

### Include library in your program

[](#include-library-in-your-program)

`require_once 'TermQuery.php';`

### or use composer

[](#or-use-composer)

```
composer require uicosss/aits_term_query
require_once 'vendor/autoload.php';

```

### Instantiate an object of the class

[](#instantiate-an-object-of-the-class)

```
$apiUrl = 'apiurl.com/without/trailing/slash'; // Contact AITS for this
$subscriptionKey = 'YOUR_SUBSCRIPTION_KEY'; // Contact AITS for this
$personApi = new uicosss\TermQuery($apiUrl, $subscriptionKey);

```

### Getting Results from an API call

[](#getting-results-from-an-api-call)

The default response will be JSON, but you can also request the raw data which will be an object of StdClass. Contact AITS for additional details on API schema.

```
Required:
$campus = 'uic'; // One of 'uic', 'uis', 'uiuc')

Optional:
$term = 'nextYear'; // Banner Term or term period ('current', 'nextYear', 'pastYear'). Default is `current`

$termApi->findTerm($campus, $term); // Conduct the term query
echo $termApi->getResponse(true); // See raw JSON response
$json = $termApi->getResponse(); // Get decoded JSON array

```

Examples:
---------

[](#examples)

You can use the attached `examples/cli-test.php` file from the command line to test functionality.

`php cli-test.php apiurl.com/without/trailing/slash YOUR_SUBSCRIPTION_KEY campus`

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity42

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.

###  Release Activity

Cadence

Every ~0 days

Total

2

Last Release

534d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/79e893fc35425da0d33ee9a5216937ebfe40870750e4e5b84982c3e3fcbd7893?d=identicon)[jjonesuic](/maintainers/jjonesuic)

![](https://www.gravatar.com/avatar/c074c8b798ec22846cc089336620b0959c4145b2d8fef07028610e5fc74102c0?d=identicon)[sa-osss-web-1](/maintainers/sa-osss-web-1)

![](https://www.gravatar.com/avatar/4dc30b9f49197aa31b451a52cba32de14e99eb53ba41d780d0d1acbc61523dd4?d=identicon)[ereyes28](/maintainers/ereyes28)

---

Top Contributors

[![thedanpaz](https://avatars.githubusercontent.com/u/25891292?v=4)](https://github.com/thedanpaz "thedanpaz (2 commits)")

### Embed Badge

![Health badge](/badges/uicosss-aits-term-query/health.svg)

```
[![Health](https://phpackages.com/badges/uicosss-aits-term-query/health.svg)](https://phpackages.com/packages/uicosss-aits-term-query)
```

###  Alternatives

[tencentcloud/tencentcloud-sdk-php

TencentCloudApi php sdk

3731.2M42](/packages/tencentcloud-tencentcloud-sdk-php)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)[mapado/rest-client-sdk

Rest Client SDK for hydra API

1125.9k2](/packages/mapado-rest-client-sdk)

PHPackages © 2026

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