korridor/laravel-computed-attributes
Adds “computed attributes” to Laravel models, letting you define dynamic/derived properties that behave like normal attributes (including access/casting/serialization) without storing them in the database. Useful for clean model APIs and reusable calculations.
order_total, user_engagement_score), reducing backend complexity and improving data consistency.For Executives: "This package lets us store derived data (e.g., dynamic pricing, user metrics) directly in the database—cutting query load, speeding up feature delivery, and reducing backend complexity. Now fully supports Laravel 13, with built-in static code analysis (PHPStan) to improve code quality. It’s like ‘smart caching’ for Eloquent models, ensuring consistency while eliminating recalculation overhead. Perfect for scaling features like analytics dashboards or pricing engines without adding technical debt."
For Engineering:
*"This package turns Eloquent accessors into persistent computed fields (e.g., order_total = subtotal + tax). Now officially supports Laravel 13 and includes PHPStan in CI for stricter code quality. Saves us from writing manual sync jobs or triggers. Key benefits:
How can I help you explore Laravel packages today?