specshaper/encrypt-bundle
SpecShaper EncryptBundle adds transparent Doctrine field encryption to Symfony apps. Mark entity properties as encrypted and the bundle automatically handles encryption and decryption, keeping sensitive database data protected at rest with configurable keys.
Consider it when:
encrypted cast or a field-level library like CipherSweet, so evaluate this package mainly if you own Symfony services or are planning a mixed stack.)Look elsewhere when:
WHERE, LIKE, sorting, joins, and uniqueness on encrypted columns.To executives: This is a low-cost lever for unblocking regulated-segment revenue. It lets us truthfully answer "customer PII is encrypted at rest" on security reviews and materially reduces the impact of a database breach — an attacker who exfiltrates a dump gets ciphertext for the fields that matter. There is no license cost; the investment is a focused engineering sprint plus ongoing key-management discipline. Recommend a scoped pilot on one high-sensitivity dataset before committing to a broader rollout.
To engineering: Small, single-purpose library that encrypts designated ORM fields and decrypts them transparently on load — domain code stays largely untouched. Accept three trade-offs up front: (1) encrypted columns are not queryable, sortable, or uniquely indexable, so schema and reporting paths must be designed around them; (2) key management is our responsibility — key loss means permanent data loss, so runbooks and backups are part of the deliverable, not a follow-up; (3) the project has a small maintainer base (105 stars, no downstream dependents), so plan to vendor/fork it and assign an owner rather than assume upstream will absorb our edge cases. Treat it as infrastructure, not a convenience import.
How can I help you explore Laravel packages today?