PHPackages                             chengkangzai/laravel-apu-schedule - 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. chengkangzai/laravel-apu-schedule

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

chengkangzai/laravel-apu-schedule
=================================

This package will find APU schedule from the open data of APU.

3.1(1y ago)1441[1 PRs](https://github.com/chengkangzai/laravel-apu-schedule/pulls)MITPHPPHP ^8.3CI passing

Since Dec 8Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/chengkangzai/laravel-apu-schedule)[ Packagist](https://packagist.org/packages/chengkangzai/laravel-apu-schedule)[ Docs](https://github.com/chengkangzai/laravel-apu-schedule)[ GitHub Sponsors](https://github.com/chengkangzai)[ RSS](/packages/chengkangzai-laravel-apu-schedule/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (8)Dependencies (7)Versions (16)Used By (0)

Laravel APU Schedule
====================

[](#laravel-apu-schedule)

[![Latest Version on Packagist](https://camo.githubusercontent.com/7f1b1dac12014f1c18bff4f7f2c72b71aa4073f607a9a3af19c2d9ee5a96143e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6368656e676b616e677a61692f6c61726176656c2d6170752d7363686564756c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/chengkangzai/laravel-apu-schedule)[![GitHub Tests Action Status](https://camo.githubusercontent.com/f7220d95a8062b454e8be348cac621ec7f2d7c9ddcdfa54f6d01f8a421441a7e/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6368656e676b616e677a61692f6c61726176656c2d6170752d7363686564756c652f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/chengkangzai/laravel-apu-schedule/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/632d8bd6e324678a09e51a602db12746878161e9abf2bb74a1133815905765f8/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6368656e676b616e677a61692f6c61726176656c2d6170752d7363686564756c652f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/chengkangzai/laravel-apu-schedule/actions?query=workflow%3A%22Check+%26+fix+styling%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/b71029604942da130ea16b94b6eb88d34acd0d63b5b40c9dd24e0a068448e347/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6368656e676b616e677a61692f6c61726176656c2d6170752d7363686564756c652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/chengkangzai/laravel-apu-schedule)

[![Package Banner](https://camo.githubusercontent.com/c3980cbdce8423d8c1afedf9ae434413a5d2b7284868921fccbcfe411f381417/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f4c61726176656c2532304170752532305363686564756c652e706e673f7468656d653d6c69676874267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d6368656e676b616e677a61692532466c61726176656c2d6170752d7363686564756c65267061747465726e3d746963546163546f65267374796c653d7374796c655f31266465736372697074696f6e3d71756572792b73747564656e74253237732b74696d657461626c652b66726f6d2b415055266d643d312673686f7757617465726d61726b3d3126666f6e7453697a653d313030707826696d616765733d61636164656d69632d636170)](https://camo.githubusercontent.com/c3980cbdce8423d8c1afedf9ae434413a5d2b7284868921fccbcfe411f381417/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f4c61726176656c2532304170752532305363686564756c652e706e673f7468656d653d6c69676874267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d6368656e676b616e677a61692532466c61726176656c2d6170752d7363686564756c65267061747465726e3d746963546163546f65267374796c653d7374796c655f31266465736372697074696f6e3d71756572792b73747564656e74253237732b74696d657461626c652b66726f6d2b415055266d643d312673686f7757617465726d61726b3d3126666f6e7453697a653d313030707826696d616765733d61636164656d69632d636170)

A Laravel package that provides a simple API to retrieve and query student timetable information from [Asia Pacific University (APU)](https://apu.edu.my/).

📋 Features
----------

[](#-features)

- Retrieve all available intake codes
- Get groupings for a specific intake
- Query timetable schedules by intake and grouping
- Access official APU holidays

🚀 Installation
--------------

[](#-installation)

You can install the package via Composer:

```
composer require chengkangzai/laravel-apu-schedule
```

📖 Usage
-------

[](#-usage)

### Get all intake codes

[](#get-all-intake-codes)

```
use Chengkangzai\ApuSchedule\ApuSchedule;

$intakes = ApuSchedule::getIntakes(); // Returns: UC3F2111SE, AFCF2011AS ...
```

### Get all groupings for a specific intake code

[](#get-all-groupings-for-a-specific-intake-code)

```
use Chengkangzai\ApuSchedule\ApuSchedule;

$groupings = ApuSchedule::getGroupings("UC3F2111SE"); // Returns: G1, G2, G3 ...
```

### Get schedule for a specific intake and grouping

[](#get-schedule-for-a-specific-intake-and-grouping)

```
use Chengkangzai\ApuSchedule\ApuSchedule;

$schedule = ApuSchedule::getSchedule("UC3F2111SE", "G1");
```

Example schedule output```
[
    {
        "INTAKE": "...",
        "MODID": "...",
        "MODULE_NAME": "...",
        "DAY": "...",
        "LOCATION": "...",
        "ROOM": "...",
        "LECTID": "...",
        "NAME": "...",
        "SAMACCOUNTNAME": "...",
        "DATESTAMP": "...",
        "DATESTAMP_ISO": "...",
        "TIME_FROM": "...",
        "TIME_TO": "...",
        "TIME_FROM_ISO": "...",
        "TIME_TO_ISO": "...",
        "GROUPING": "...",
        "CLASS_CODE": "...",
        "COLOR": "..."
    },
    {}
]
```

### Get all official APU holidays

[](#get-all-official-apu-holidays)

```
use Chengkangzai\ApuSchedule\ApuHoliday;

$allHolidays = ApuHoliday::getAll(); // Returns a collection of holidays
```

### Get official APU holidays for a specific year

[](#get-official-apu-holidays-for-a-specific-year)

```
use Chengkangzai\ApuSchedule\ApuHoliday;

$holidaysFor2023 = ApuHoliday::getByYear(2023); // Returns holidays for 2023
```

Example holiday object structure```
[
    "holiday_description" => "New Year's Day",
    "holiday_end_date" => "Sat, 01 Jan 2022 00:00:00 GMT",
    "holiday_name" => "New Year's Day",
    "holiday_people_affected" => "all",
    "holiday_start_date" => "Sat, 01 Jan 2022 00:00:00 GMT",
    "id" => 336,
]
```

🧪 Testing
---------

[](#-testing)

```
composer test
```

📝 Changelog
-----------

[](#-changelog)

Please see the [CHANGELOG](CHANGELOG.md) file for details on what has changed recently.

🤝 Contributing
--------------

[](#-contributing)

Contributions are welcome! Please see the [CONTRIBUTING](.github/CONTRIBUTING.md) guide for details.

🔒 Security Vulnerabilities
--------------------------

[](#-security-vulnerabilities)

If you discover a security vulnerability, please review [our security policy](../../security/policy) for instructions on how to report it.

✨ Credits
---------

[](#-credits)

- [chengkangzai](https://github.com/chengkangzai)
- [All Contributors](../../contributors)

📄 License
---------

[](#-license)

This package is open-sourced software licensed under the [MIT License](LICENSE.md).

###  Health Score

45

—

FairBetter than 92% of packages

Maintenance71

Regular maintenance activity

Popularity14

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 69.6% 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 ~168 days

Recently: every ~291 days

Total

8

Last Release

435d ago

Major Versions

0.0.3 → 1.0.02021-12-22

1.0.0 → 2.0.02022-03-17

2.1.0 → 3.0.02025-03-03

PHP version history (2 changes)0.0.1PHP ^8.0

3.0.0PHP ^8.3

### Community

Maintainers

![](https://www.gravatar.com/avatar/a370741c6674c16bdde48fe05be751779341eea55bf51bd75eb165e146a836fc?d=identicon)[chengkangzai](/maintainers/chengkangzai)

---

Top Contributors

[![chengkangzai](https://avatars.githubusercontent.com/u/43839286?v=4)](https://github.com/chengkangzai "chengkangzai (64 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (16 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (12 commits)")

---

Tags

laravelchengkangzailaravel-apu-schedule

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/chengkangzai-laravel-apu-schedule/health.svg)

```
[![Health](https://phpackages.com/badges/chengkangzai-laravel-apu-schedule/health.svg)](https://phpackages.com/packages/chengkangzai-laravel-apu-schedule)
```

###  Alternatives

[maestroerror/laragent

Power of AI Agents in your Laravel project

630106.4k](/packages/maestroerror-laragent)[nativephp/mobile

NativePHP for Mobile

82724.0k43](/packages/nativephp-mobile)[spatie/laravel-rdap

Perform RDAP queries in a Laravel app

72108.3k2](/packages/spatie-laravel-rdap)[ralphjsmit/laravel-helpers

A package containing handy helpers for your Laravel-application.

13704.6k2](/packages/ralphjsmit-laravel-helpers)[tarfin-labs/event-machine

Event-driven state machines for Laravel with event sourcing, type-safe context, and full audit trail.

188.5k](/packages/tarfin-labs-event-machine)

PHPackages © 2026

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