Skip to content

Releases: ray-di/Ray.InputQuery

1.0.0

29 Jul 18:42
9d29544

Choose a tag to compare

First stable release

0.3.0

16 Jul 15:27

Choose a tag to compare

Improved

  • Enhanced nested query handling for bracketed object creation

This release improves the handling of nested query parameters when creating objects with bracketed notation, providing better support for complex nested data structures.

Full Changelog: 0.2.0...0.3.0

Release 0.2.0

07 Jul 12:59
74d0fe6

Choose a tag to compare

Added

  • ToArrayInterface and ToArray implementation for flattening objects to flat associative arrays

Features

  • Convert nested Input objects to flat arrays for SQL parameter binding
  • Preserve arrays for SQL IN clauses (Aura.Sql compatible)
  • Recursive flattening with property conflict resolution
  • Test coverage: 104 tests, 340 assertions
  • PHP 8.1+ compatibility

🤖 Generated with Claude Code

Release 0.1.0

07 Jul 01:18

Choose a tag to compare

Ray.InputQuery 0.1.0

Initial release of Ray.InputQuery - Structured input objects from HTTP with 100% test coverage.

Features

  • Declarative Input Handling: Use #[Input] attributes to define input structure
  • Automatic Type Conversion: Converts string inputs to appropriate PHP types
  • Nested Object Support: Automatically creates nested objects from flat data (e.g., assigneeId, assigneeNameUserInput object)
  • DI Integration: Seamlessly integrates with dependency injection containers
  • File Upload Support: Optional integration with koriym/file-upload package
  • Framework Agnostic: Works with any PHP framework or standalone

Installation

composer require ray/input-query

For file upload support:

composer require koriym/file-upload

Documentation

Requirements

  • PHP 8.1 or higher
  • ray/di ^2.18
  • symfony/polyfill-php83 ^1.28
  • koriym/file-upload ^0.2.0 (optional)

See CHANGELOG.md for detailed changes.