aw-studio/laravel-bitflags
Laravel Bitflags stores multiple boolean flags in a single integer column. It provides an Eloquent cast for toggling, checking, and querying bitwise options without extra database columns.
Architecture fit
CastsAttributes contract; v1.0.0 explicitly types the cast to match current Laravel contracts, reducing adapter drift.BIGINT) and document it.Integration feasibility
composer require aw-studio/laravel-bitflags:^1.0.v0.1.illuminate/database and illuminate/contracts dependencies improve install predictability, but version constraints should be reviewed against the host application’s framework constraints.Technical risk
null column values now cast to [] without PHP’s decbin(null) deprecation, removing a known runtime warning path.Key questions
v0.1?aw-studio/laravel-bitflags after v1.0.0?Stack fit
aw-studio/laravel-bitflags:^0.1.Migration path
v0.1 users: upgrade PHP and Laravel first, then update the package to ^1.0. No application code changes are expected for existing cast, helper, or macro usage.^1.0 directly on a supported Laravel/PHP stack.Compatibility
v1.0 is not backward compatible with Laravel 8–10 or PHP < 8.2. This is the primary gating factor.v0.1 remains the compatibility path for older stacks, but it will not receive the v1.0 typing, null-safety, and dependency fixes.Sequencing
composer.json to aw-studio/laravel-bitflags:^1.0.null bitmask column returning [].^0.1 with an explicit constraint until they complete the platform upgrade.Maintenance
illuminate/* dependencies reduce the chance of unresolved transitive dependency conflicts.Support
v0.1) but should plan to upgrade rather than rely on an unsupported line indefinitely.Scaling
Failure modes
^1.0 on Laravel 10 or PHP 8.1 will fail dependency resolution. Pin ^0.1 for those environments.null bitmask columns.Ramp-up
How can I help you explore Laravel packages today?