chukka-wp/chukka-spec
最新稳定版本:v0.2.1
Composer 安装命令:
composer require chukka-wp/chukka-spec
包简介
Open standard and PHP package for water polo match data
README 文档
README
Open data standard for water polo match representation. Provides Eloquent models, migrations, event types, payload validation, game state computation, and correction handling.
This is the foundation package used by all other Chukka components.
Features
- Eloquent models: Club, Team, Player, Match, RosterEntry, Event, RuleSet
GameStateService— computes full match state from event logEventDispatcher— validates and persists match eventsCorrectionService— void and replace events without deletion- Bundled rule sets (FINA 2025 defaults, configurable per competition)
- Database migrations and seeders
Installation
composer require chukka-wp/chukka-spec
Usage
Publish migrations:
php artisan vendor:publish --tag=chukka-spec-migrations
Configure model overrides in config/chukka-spec.php:
return [ 'models' => [ 'club' => \App\Models\Club::class, 'match' => \App\Models\MatchModel::class, // ... ], ];
License
统计信息
- 总下载量: 78
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-04-01