cline / struct
Lean, attribute-driven Laravel data objects with explicit validation and Eloquent casting support
1.0.1
2026-03-08 14:04 UTC
Requires
- php: ^8.5.0
- cline/attribute-reader: ^1.0
- facade/ignition-contracts: ^1.0.2
- illuminate/collections: ^10.0 || ^11.0 || ^12.0 || ^13.0
- illuminate/contracts: ^10.0 || ^11.0 || ^12.0 || ^13.0
- illuminate/database: ^10.0 || ^11.0 || ^12.0 || ^13.0
- illuminate/support: ^10.0 || ^11.0 || ^12.0 || ^13.0
- illuminate/validation: ^10.0 || ^11.0 || ^12.0 || ^13.0
- spatie/laravel-package-tools: ^1.93.0
- spatie/php-structure-discoverer: ^2.4
- symfony/yaml: ^7.4.6
Requires (Dev)
- beacon-hq/bag: ^2.6.2
- cline/bench: ^1.0
- cline/coding-standard: ^2.0.1
- livewire/livewire: ^4.2.1
- orchestra/testbench: ^8.0 || ^9.0 || ^10.9
- phpbench/phpbench: ^1.5.1
- spatie/laravel-data: ^4.20
- symfony/var-dumper: ^6.0 || ^7.4.6
Suggests
- livewire/livewire: Add first-class Livewire Wireable and synthesizer support for data objects.
README
struct
Lean, attribute-driven Laravel data objects for applications that want the useful parts
of spatie/laravel-data without the magic-heavy surface area.
Requirements
Requires PHP 8.4+
Installation
composer require cline/struct
Documentation
- Consumer guide: USAGE.md
- Benchmarking workflows: BENCHMARK.md
Change log
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
Security
If you discover any security related issues, please use the GitHub security reporting form rather than the issue queue.
Credits
License
The MIT License. Please see License File for more information.