定制 pmdevelopment/german-holiday-bundle 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

pmdevelopment/german-holiday-bundle

Composer 安装命令:

composer require pmdevelopment/german-holiday-bundle

包简介

German Holidays

README 文档

README

Get german legal holidays as symfony2 bundle.

--

Deutsche gesetzliche Feiertage für Symfony2 als Bundle.

Setup

Add to AppKernel

new PM\Bundle\GermanHolidayBundle\PMGermanHolidayBundle(),

Warnings

German holidays are a mess. Corpus christi is city based in Saxony and Thuringia, Assumption day in Bavaria. Those holidays are ignored for those states. Also you should always use the real year you are looking for, because in 2017 reformation day is country wide, so in this year the holidays are different.

Usage

Forms

Your Users probably need the state connection.

->add('state', ChoiceType::class, [
    'label'                     => 'label.state',
    'choices_as_values'         => true,
    'choice_translation_domain' => 'PMGermanHolidayBundle',
    'choices'                   => States::getAll(),
    'required'                  => false,
    'preferred_choices'         => [
        States::HESSE,
    ],
    'placeholder'               => 'help.empty',
])

Get All

You can get all holidays by year. De result uses the Holiday object.

$holidays = $this->getContainer()->get('pm_german_holiday.services.holiday_service')->getAll($year);

More Stuff

The services uses some helper you can also use to get holidays by state or all holidays for one state.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-06-15

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固