Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Data Model Laravel Package

zero-to-prod/data-model

Type-safe PHP data models that hydrate from arrays/JSON via a single from($data) call. Uses reflection, type hints, and #[Describe] attributes for defaults, required/nullable rules, casting, and assignment—ideal for APIs, DB rows, and user input.

View on GitHub
Deep Wiki
Context7
v81.17.0
  • Support subclassing Describe and treat string context as empty by @zero-to-prod in #65
  • feat/extra by @zero-to-prod in #64
  • Support subclassing Describe and treat string context as empty (#65) by david in 7e822548067dd2b2b48221c2915c6d1a4bef83f0
v81.16.0
  • feat/extra by @zero-to-prod in #64
  • Add callable support to assign attribute with 1 and 4 parameter signatures by @zero-to-prod in #63
  • feat/extra (#64) by david in 25bb7bcbe82a985640ebe8bddc46e092b3940be0
v81.15.1
  • Add callable support to assign attribute with 1 and 4 parameter signatures by @zero-to-prod in #63
  • Add assign attribute to always set fixed property values by @zero-to-prod in #62
  • Add callable support to assign attribute with 1 and 4 parameter signatures (#63) by david in 77f7af9feece6ebf8332970a79d198ee4ffe4545
v81.15.0
  • Add assign attribute to always set fixed property values by @zero-to-prod in #62
  • Add support for first-class callable syntax in cast attribute by @zero-to-prod in #61
  • Add assign attribute to always set fixed property values (#62) by david in 19c55f57f9673dca4bd473049d24ff2986b2a4c5
v81.14.0
  • Add support for first-class callable syntax in cast attribute by @zero-to-prod in #61
  • Add explicit function imports for complier optimized functions. by @zero-to-prod in #60
  • Add support for first-class callable syntax in cast attribute (#61) by david in b9802cf7211a73164fd44b3afaef3a8c9a90ada5
v81.13.2
  • Add explicit function imports for complier optimized functions. by @zero-to-prod in #60
  • Add support for single-argument cast functions by @zero-to-prod in #59
  • Add explicit function imports for complier optimized functions. (#60) by david in f653a3f236ba575d7cd34a6acf88c20a7f49ddf1
v81.13.1
  • Add support for single-argument cast functions by @zero-to-prod in #59
  • Add support for PHP 8.5 in workflows and Docker by @zero-to-prod in #58
  • Add support for single-argument cast functions (#59) by david in 883a8ccf752e007b628406f7bdaa03fab288acbf
  • Refactor annotate workflow to trigger on pull requests and improve Git operations by David Smith in af1a3958fdf2d4cccbab4b787d2c510d04cdd384
  • Add annotate workflow for updating docblocks with homepage link by David Smith in d4defacc856e5fa18cecce0d8cc1f3e23b3275a3
v81.13.0
  • Add support for PHP 8.5 in workflows and Docker by @zero-to-prod in #58
  • docs/publish-readme by @zero-to-prod in #57
  • Add support for PHP 8.5 across workflows and Docker. (#58) by david in 4eab0924b5c27fd073b3a3c623aea7839f101acd
  • Add docblock_update.yml for automating docblock updates. by David Smith in 2c069b6bc7426b99fc6c94191556863d2c45c5d5
v81.12.0
  • docs/publish-readme by @zero-to-prod in #57
  • Potential fix for code scanning alert no. 1: Workflow does not contain permissions by @zero-to-prod in #56
  • Potential fix for code scanning alert no. 2: Workflow does not contain permissions by @zero-to-prod in #55
  • Potential fix for code scanning alert no. 3: Workflow does not contain permissions by @zero-to-prod in #54
  • Update Describe params to be optional by @mintbridge in #53
  • docs/publish-readme (#57) by david in 89e8a63fddf2d4f9907932cfe7fed0e71a4d3726
  • Potential fix for code scanning alert no. 1: Workflow does not contain permissions (#56) by david in 47126958d53b75dd64b0075f05eb742ccab7d104
  • Potential fix for code scanning alert no. 2: Workflow does not contain permissions (#55) by david in c7ba6700ced5fbaef79e4f45a46f0a9ec93ba5a4
  • Potential fix for code scanning alert no. 3: Workflow does not contain permissions (#54) by david in faab7b0d6126eb2eec6b8e559bf734c66f5f97e1
v81.11.1
  • Update Describe params to be optional by @mintbridge in #53
  • Add a package manifest intended for machine consumption and understanding. by @zero-to-prod in #52
  • Update Describe params to be optional (#53) by Paul Dixon in ef7eb42d826e84e48372712d43e7e7aaca645f5e
v81.11.0
  • Add a package manifest intended for machine consumption and understanding. by @zero-to-prod in #52
  • Refactor attribute retrieval in DataModel by @zero-to-prod in #51
  • Add a package manifest intended for machine consumption and understanding. (#52) by david in 5bf71a6603d958197030f135db910ec0b6513a9e
v81.10.4
  • Refactor attribute retrieval in DataModel by @zero-to-prod in #51
  • Improve describe attribute handling by @zero-to-prod in #50
  • Refactor attribute retrieval in DataModel (#51) by david in a56138bd66fbbfca6f9a20b632a1211774b7a434
v81.10.3
  • Improve describe attribute handling by @zero-to-prod in #50
  • feat/set-sane-value-default Updated src/DataModel.php. by @zero-to-prod in #49
  • Improve describe attribute handling (#50) by david in 2e9424bef46d2fedc88fec277999aa0f99c678eb
v81.10.2
  • feat/set-sane-value-default Updated src/DataModel.php. by @zero-to-prod in #49
  • bugfix/via Updated src/DataModel.php. by @zero-to-prod in #48
  • feat/set-sane-value-default Updated src/DataModel.php. (#49) by david in 38fc6f07cec8d1d4c70c725d569a87f5dd0c6529
  • Update release.yml by David Smith in 62272be7f26ff6b31cf907a5230346e0791c7fbb
  • Add composer_require_checker.yml. by David Smith in e63f8ffec8344e0c98d299b272dca3ce16b870f1
  • Update release workflows by david_smith in 5bf8c7b7ec603df4443b8d2e813967244c0472b0
v81.9.6
v81.7.0

What's Changed

Full Changelog: https://github.com/zero-to-prod/data-model/compare/v81.6.9...v81.7.0

v81.6.6

What's Changed

Full Changelog: https://github.com/zero-to-prod/data-model/compare/v81.6.5...v81.6.6

v81.6.4
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport
twbs/bootstrap4