brandoriented/doctrine-encryption-bundle
Look Elsewhere If:
spatie/laravel-encryption.EncryptionService interface).Adopt If:
"This package lets us encrypt sensitive customer data (e.g., addresses, payment details) at the database level with minimal code changes—critical for GDPR compliance and reducing breach risks. It’s a ‘buy vs. build’ decision that saves 3–6 months of dev time while adding a security layer to our existing Symfony/Laravel stack. The trade-off is limited maintenance (last updated in 2018), but we can mitigate this by treating it as a short-term solution or forking it for long-term use."
Key Outcomes:
*"This bundle integrates Doctrine encryption via annotations (e.g., @Encrypted) and a simple service, handling auto-encryption on prePersist/preUpdate. It’s a drop-in for Symfony/Laravel apps using Doctrine, but has gaps:
Recommendation:
EncryptionService interface for future-proofing.Alternatives:
spatie/laravel-encryption (more modern).defuse/php-encryption + Doctrine listeners if flexibility is critical."*How can I help you explore Laravel packages today?