PHPackages                             dpazuic/aits\_grades - 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. dpazuic/aits\_grades

ActiveLibrary[API Development](/categories/api)

dpazuic/aits\_grades
====================

PHP Wrapper API for the AITS Grades API

024PHP

Since Sep 27Pushed 5y ago1 watchersCompare

[ Source](https://github.com/uicosss/aits_grades)[ Packagist](https://packagist.org/packages/dpazuic/aits_grades)[ RSS](/packages/dpazuic-aits-grades/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

aits\_grades
============

[](#aits_grades)

PHP Library for using the AITS Grades API (contact AITS for additional details on API)

Usage
-----

[](#usage)

To use the library, you need to:

### Include library in your program

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

```
include_once(aits_grades.php');

```

### or use composer `composer require dpazuic\aits_grades`

[](#or-use-composer-composer-require-dpazuicaits_grades)

```
include_once('vendor/autoload.php');

```

### Instantiate an object of class `dpazuic\aits_grades`

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

```
$uin = '123456789';
$senderAppID = 'YOUR_SENDER_APP_ID'; // Contact AITS for this
$term = '220181'; // Optional
$gradesAPI = new dpazuic\aits_grades($uin, $senderAppID, $term); // Includin 3rd argument, term, is optional

```

**Note**: By default the third argument, term, is optional. If term is provided, the API fetches the grade information for the provided term. If the term is not provided, the API fetches the grade information for each term the student has registered courses.

### 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 array of StdClass objects.

```
$gradesAPI->getAITSTerms();
$response = $gradesAPI->getResponse('JSON');

```

Examples:
---------

[](#examples)

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

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

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://avatars.githubusercontent.com/u/13371151?v=4)[dpazuic](/maintainers/dpazuic)[@dpazuic](https://github.com/dpazuic)

![](https://avatars.githubusercontent.com/u/89788862?v=4)[sa-osss-web-1](/maintainers/sa-osss-web-1)[@sa-osss-web-1](https://github.com/sa-osss-web-1)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/dpazuic-aits-grades/health.svg)

```
[![Health](https://phpackages.com/badges/dpazuic-aits-grades/health.svg)](https://phpackages.com/packages/dpazuic-aits-grades)
```

###  Alternatives

[exsyst/swagger

A php library to manipulate Swagger specifications

35816.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[pocketmine/bedrock-protocol

An implementation of the Minecraft: Bedrock Edition protocol in PHP

172437.8k11](/packages/pocketmine-bedrock-protocol)[botman/driver-telegram

Telegram driver for BotMan

94452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

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