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

Virtualcolumn Laravel Package

stancl/virtualcolumn

stancl/virtualcolumn adds database-like “virtual columns” to Eloquent models, letting you define computed attributes that can be queried, sorted, and indexed as if they were real fields. Useful for JSON data, derived values, and cleaner, faster queries.

View on GitHub
Deep Wiki
Context7

Technical Evaluation

Architecture fit: The package fits well within Laravel's Eloquent ORM for application-level computed attributes, ideal for presentation logic and simple derived values. However, it operates purely in PHP, not at the database level, making it unsuitable for query constraints (e.g., WHERE clauses) or joins. Best for read-only scenarios where database normalization is prioritized over SQL-level computation.
Integration feasibility: Straightforward via Composer; requires minimal code changes to define virtual columns in models. No schema migrations needed. However, low adoption (82 stars) suggests limited

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
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
php-http/client-implementation
phpcr/phpcr-implementation
cucumber/gherkin-monorepo
haydenpierce/class-finder
psr/simple-cache-implementation
uri-template/tests