jgi/swedish-dates-bundle
Composer 安装命令:
composer require jgi/swedish-dates-bundle
包简介
Symfony bundle for jgi/swedish-dates
README 文档
README
Installation
Install with composer
$ composer require jgi/swedish-dates-bundle
Add the bundle to your AppKernel.
new JGI\SwedishDatesBundle\JGISwedishDatesBundle(),
Usage
$date = $container->get('jgi.swedish_dates.datemanager')->getDate(new \Datetime('2014-12-25')); echo $date->getDateTime()->format('Y-m-d') . ": " . ($date->isRedDay() ? 'red day' : 'not red day') . ' - ' . $date->getName(); // 2014-12-25: red day - Juldagen
License
Bundle under the MIT License
统计信息
- 总下载量: 160
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 4
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-03-10