dwgebler/encrypted-fields-bundle
Adopt if:
laravel-doctrine package).Look elsewhere if:
For Executives: *"This package lets us automatically encrypt sensitive customer data—like credit card numbers, health records, or login credentials—without writing custom security code. It’s like adding a compliance shield to specific database fields, which helps us:
For Engineering: *"This is a Symfony/Laravel bundle that handles AES-256-GCM encryption for Doctrine fields with zero crypto expertise needed. Key benefits:
[EncryptedField] to your entity properties (e.g., #[EncryptedField] private string $ssn;).php bin/console gebler:encryption:rotate-key).
Downsides:encryption_key table to your DB.
Alternatives: If we can’t use Doctrine, we’d need to build custom encryption or use a Laravel-specific package like spatie/laravel-encryption."*For Security/Compliance: *"This meets NIST SP 800-175B guidelines for key management (per-record keys encrypted with a master key) and supports data masking for audits. Key advantages:
.env or a secrets manager), and per-record keys are never exposed.encryption_key table logs all encrypted fields, which can be scanned for compliance (e.g., by Vanta or Drata).For Product Managers: *"This enables us to ship security features faster without blocking the roadmap. For example:
[EncryptedField] to the User entity and run a migration. Done.Payment, MedicalRecord)."*How can I help you explore Laravel packages today?