承接 koma/simple-hong-kong-holiday 相关项目开发

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

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

koma/simple-hong-kong-holiday

最新稳定版本:1.0

Composer 安装命令:

composer require koma/simple-hong-kong-holiday

包简介

simple hong kong holiday for laravel

关键字:

README 文档

README

Installation

You can install the package via composer:

composer require koma/simple-hong-kong-holiday

You may publish and run the migrations:

#config
php artisan vendor:publish --tag="simple-holiday-config"

#migrations
php artisan vendor:publish --tag="simple-holiday-migrations"
php artisan migrate

And run command to generate holidays.

You may create cron job or schedule every year.

php artisan fetch:holiday 

Config

return [
    /*
     * You should define table name before migrate, default: holidays
     */
    'table_name' => env('HOLIDAY_TABLE_NAME', 'holidays'),

    /*
     * fetching gov url for holiday json url
     */

    'en_url' => env('HOLIDAY_EN_URL', 'https://www.1823.gov.hk/common/ical/en.json'),
    'tc_url' => env('HOLIDAY_TC_URL', 'https://www.1823.gov.hk/common/ical/tc.json'),
    'sc_url' => env('HOLIDAY_SC_URL', 'https://www.1823.gov.hk/common/ical/sc.json'),

    /*
     * model class, you can define your own holiday class
     */
    'model_class' => Koma\SimpleHongKongHoliday\app\Models\Holiday::class,
];


License

The Laravel framework is open-sourced software licensed under the MIT license.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-11-11