承接 vbudkodev/russian-date-grammatical-helper 相关项目开发

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

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

vbudkodev/russian-date-grammatical-helper

最新稳定版本:v1.0.0

Composer 安装命令:

composer require vbudkodev/russian-date-grammatical-helper

包简介

PHP helper for Russian date components with grammatical cases support

README 文档

README

PHP Version License

A lightweight PHP library for working with Russian date components with full grammatical cases support. Perfect for generating grammatically correct date phrases in Russian.

Installation

composer require vbudkodev/russian-date-grammatical-helper

Current Features

Month Names with Grammatical Cases

use RussianDateGrammaticalHelper\MonthHelper;
use RussianDateGrammaticalHelper\GrammaticalCase;

// Basic usage
echo MonthHelper::name(1); // 'январь' (nominative)

// Specific cases
echo MonthHelper::name(1, GrammaticalCase::GENITIVE); // 'января'
echo MonthHelper::name(1, GrammaticalCase::PREPOSITIONAL); // 'январе'

// Prepositional phrase
echo MonthHelper::in(5); // 'в мае'

// All forms at once
$forms = MonthHelper::forms(3);
echo $forms[GrammaticalCase::NOMINATIVE->value]; // 'март'
echo $forms[GrammaticalCase::GENITIVE->value]; // 'марта'

Available Cases

All six Russian grammatical cases are supported via the Case enum:

  • GrammaticalCase::NOMINATIVE - Именительный (кто? что?)
  • GrammaticalCase::GENITIVE - Родительный (кого? чего?)
  • GrammaticalCase::DATIVE - Дательный (кому? чему?)
  • GrammaticalCase::ACCUSATIVE - Винительный (кого? что?)
  • GrammaticalCase::INSTRUMENTAL - Творительный (кем? чем?)
  • GrammaticalCase::PREPOSITIONAL - Предложный (о ком? о чём?)

Roadmap

  • Day of week names with cases
  • Year formatting (e.g., "в 2026 году")
  • Full date formatting helpers
  • Seasonal and relative date phrases

Testing

composer test

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-10-17