atk4/data
ATK Data is a PHP data model abstraction that separates business logic from UI and persistence. Works with SQL/NoSQL/APIs, supports relations, expressions, aggregation, and user actions with ACL metadata—integrates easily with ATK UI and ATK API.
Client, Invoice) with 3 lines of code.user_id filters) globally across all models with zero manual checks.profit field) without breaking existing features.*"ATK Data lets us build data-driven applications 10x faster by eliminating the gap between business logic and the UI/API. Instead of writing custom SQL for every report or admin panel, we define our data models once, then generate interfaces automatically. For example:
profit column) without breaking existing features.It’s like Laravel’s Eloquent + AdminLTE + a reporting engine, but unified. The MIT license and MIT’s performance make it risk-free to adopt for core systems."*
*"ATK Data is a Data Mapper that solves the ‘ORM trap’—where your UI can’t discover your data model. Key wins:
$job->hasMany('Timesheets')->addField('reported', [
'aggregate' => 'sum',
'field' => '[hours] * [hourly_rate]',
]);
→ Executes as one SQL query when rendered.$model->addHook('beforeSave', function($m) {
$m->set('updated_at', now());
});
Tradeoffs:
Next Steps:
How can I help you explore Laravel packages today?