承接 chengkangzai/laravel-apu-schedule 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

chengkangzai/laravel-apu-schedule

Composer 安装命令:

composer require chengkangzai/laravel-apu-schedule

包简介

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

README 文档

README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

Package Banner

A Laravel package that provides a simple API to retrieve and query student timetable information from Asia Pacific University (APU).

📋 Features

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

🚀 Installation

You can install the package via Composer:

composer require chengkangzai/laravel-apu-schedule

📖 Usage

Get all intake codes

use Chengkangzai\ApuSchedule\ApuSchedule;

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

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

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

use Chengkangzai\ApuSchedule\ApuHoliday;

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

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

composer test

📝 Changelog

Please see the CHANGELOG file for details on what has changed recently.

🤝 Contributing

Contributions are welcome! Please see the CONTRIBUTING guide for details.

🔒 Security Vulnerabilities

If you discover a security vulnerability, please review our security policy for instructions on how to report it.

✨ Credits

📄 License

This package is open-sourced software licensed under the MIT License.

统计信息

  • 总下载量: 447
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-12-07

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固