Skip to content

Second version, after `odds-formatter`

Choose a tag to compare

@bpacholek bpacholek released this 19 Aug 00:55
· 6 commits to main since this release

🚀 New Architecture (v2.0)

This library has been completely redesigned with:

  • Immutable Odds class containing all formats and probability
  • OddsFactory with dependency injection for conversion strategies
  • String-based decimals for precision and security (no more float issues!)
  • bcmath calculations for exact mathematical operations
  • Extensible odds ladder system via interfaces

Features

  • Precision: String-based decimals with bcmath calculations
  • Immutable design: Thread-safe odds objects
  • All-in-one: Single object contains decimal, fractional, moneyline, and probability
  • Dependency injection: Configurable conversion strategies
  • Extensible: Custom odds ladder implementations
  • Comprehensive: Full test coverage