gracik / mapper
Php library to map arrays to objects
0.0.3
2024-10-30 23:35 UTC
Requires
- ext-mbstring: *
- nikic/php-parser: ^4.17
Requires (Dev)
- phpstan/phpstan: ^1.9
- phpunit/phpunit: ^9.5
- slevomat/coding-standard: ^8.6
- symplify/easy-coding-standard: ^11.1
This package is auto-updated.
Last update: 2025-09-29 02:51:18 UTC
README
Map dumb arrays to objects.
Features and TODOs
- [x] Map empty arrays to empty objects
- [x] Generate mapper classes for empty classes
- [ ] Generate mapper classes for classes with primitive fields
- [ ] Generate mapper classes for classes with fields of any php type (and most of docblock phpstan types)
- [ ] Generate and validate openapi schema for request/response classes
- [ ] Generate and validate openapi schema for whole requests from controllers
- [ ] Provide request bodies and query parameters to controllers
Release notes
See CHANGES.md