aeliot/doctrine-encrypted-bundle
Symfony bundle that adds Doctrine column types for encrypting individual database fields. Install via Composer, configure your key and mappings, and store encrypted values transparently. Notes on DB charset/collation (utf8mb4) for reliable sizing.
doctrine/dbal and doctrine/orm), enabling column-level encryption without application-layer changes.laravel-doctrine/orm or similar bridges), adding complexity.utf8mb4 collation, which may conflict with existing databases or migrations.laravel-doctrine/orm or custom Doctrine service provider.DB::select) won’t natively support Doctrine types, limiting use cases.EncryptedType; no built-in key management (e.g., AWS KMS, HashiCorp Vault). Custom integration needed for production-grade security.tightenco/ziggy or custom accessors suffice?config/cache or external vaults?DB::enableQueryLog) or full-text search?spatie/laravel-encryption or paragonie/vault for Laravel-native solutions.laravel-doctrine/orm or custom setup).utf8mb4 collation (required for encrypted fields).Schema builder won’t recognize Doctrine types; custom migration logic needed.utf8mb4 compatibility across the database.user_credentials) using Doctrine entities.doctrine/dbal and doctrine/orm (v2.10+). Laravel’s doctrine/orm bridges must be version-aligned.laravel-scout) may fail on encrypted columns.cubex/doctrine-phpcr-odm).utf8mb4 for new tables or migrate existing ones.Schema migrations.EXPLAIN plans, logs).| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Lost encryption key | Permanent data loss | Backup keys in a secure vault. |
| Database corruption | Unreadable encrypted columns | Regular backups + point-in-time recovery. |
| Doctrine/Laravel version conflict | Broken queries/entities | Containerized testing (Docker). |
| Key rotation failure | Decryption errors | Automated key rotation scripts. |
| Query timeouts | Slow API responses | Query optimization + caching. |
EncryptedType).How can I help you explore Laravel packages today?