chukka-wp/chukka-spec

Open standard and PHP package for water polo match data

Maintainers

Package info

github.com/chukka-wp/spec

Homepage

pkg:composer/chukka-wp/chukka-spec

Statistics

Installs: 78

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

v0.2.1 2026-04-05 21:41 UTC

This package is auto-updated.

Last update: 2026-04-14 21:22:06 UTC


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 log
  • EventDispatcher — validates and persists match events
  • CorrectionService — 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

MIT License