supportpal/eloquent-model
Eloquent-style base Model for PHP/Laravel to build custom, non-database models. Supports accessors/mutators, attribute casting, guarded/fillable and hidden fields, appended attributes, and easy array/JSON conversion.
save() method for API calls in the example).For Executives: "This package lets us reuse Laravel’s battle-tested model patterns—like automatic data casting, secure attribute handling, and clean JSON serialization—in any PHP project, not just Laravel. It’s a low-risk way to standardize how we manage data across our stack, reducing developer onboarding time and cutting bugs in data transformation. For example, we could use it to unify how user data flows between our legacy Symfony CRM and new Laravel APIs, saving months of custom logic development. The cost? Minimal—a single Composer package with no vendor lock-in."
For Engineering: *"Imagine writing models that just work, with zero boilerplate for common tasks like:
string timestamps → DateTime objects).password by default).
This is the Eloquent Model class, stripped down to its core, so you can use it anywhere. It’s perfect for:How can I help you explore Laravel packages today?