This package provide simple API to get all and query the student's timetable information from Asia Pacific University(APU).
You can install the package via composer:
composer require chengkangzai/laravel-apu-schedule
use Chengkangzai\ApuSchedule\ApuSchedule;
$intakes = ApuSchedule::getIntakes(); // UC3F2111SE, AFCF2011AS ...
use Chengkangzai\ApuSchedule\ApuSchedule;
ApuSchedule::getGroupings("UC3F2111SE"); // G1,G2,G3
use Chengkangzai\ApuSchedule\ApuSchedule;
ApuSchedule::getSchedule("UC3F2111SE","G1");
Example 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": "..."
},
{}
]
use Chengkangzai\ApuSchedule\ApuHoliday;
ApuHoliday::getAll(); // return collection of holiday
use Chengkangzai\ApuSchedule\ApuHoliday;
ApuHoliday::getByYear(2023); // return collection of holiday
Example Output of Holiday Object
[
"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,
]
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.