Skip to content

Release version 2.0.0

Choose a tag to compare

@phpdevcommunity phpdevcommunity released this 21 Nov 10:30
· 1 commit to main since this release

Breaking Changes:

  • Removed the new factory method. Use specific static factory methods instead.
  • Renamed setRequired to required for better fluency.
  • Removed setDefaultValue. Use setOptional to define optional values with defaults.
  • Enforced strict boolean return types for validation methods.

Features:

  • Added static factory methods for strict type enforcement (string, int, float, bool, array, iterable, mixed).
  • Added setOptional to clearly distinguish optional parameters.
  • Improved internal validation logic for better type safety.

Documentation:

  • Complete rewrite of the documentation with a new professional title and description.
  • Added comprehensive examples for all available option types.
  • Added guides for required vs optional fields and custom validation.
  • Added full French translation of the documentation.
  • Added License section.

Tests:

  • Updated all test suites to align with the v2.0.0 API.