Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Doctrine Encrypted Field Laravel Package

aeliot/doctrine-encrypted-field

Laravel/Doctrine extension that transparently encrypts and decrypts entity fields. Adds an encrypted field type you can map in your entities so sensitive values are stored encrypted in the database and handled normally in your code.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Data Security & Compliance: Enables field-level encryption for sensitive data (e.g., PII, payment details, health records) without application-level rework, aligning with GDPR, HIPAA, or SOC2 requirements.
  • Cost Efficiency: Avoids expensive third-party encryption services (e.g., AWS KMS, HashiCorp Vault) for simple use cases by leveraging open-source Doctrine integration.
  • Developer Productivity: Reduces boilerplate for encryption/decryption logic, accelerating feature delivery (e.g., adding encrypted fields to user profiles, audit logs, or financial records).
  • Roadmap Flexibility: Supports future-proofing by abstracting encryption logic from business logic, allowing swapping algorithms (e.g., AES-256 → ChaCha20) without breaking changes.
  • Build vs. Buy: Justifies buying this lightweight package over custom development for teams lacking cryptography expertise or needing rapid compliance.

When to Consider This Package

  • Use This When:

    • Your app stores sensitive data in Doctrine (Symfony, Laravel with Doctrine ORM) and needs field-level encryption (e.g., passwords, SSNs, API keys).
    • You prioritize simplicity over fine-grained control (e.g., no need for hardware-backed keys or key rotation policies).
    • Your team lacks cryptography specialists but needs auditability (encryption logs, key management hooks).
    • You’re using Symfony/Laravel with Doctrine and want to avoid reinventing encryption wheels.
  • Look Elsewhere If:

    • You need client-side encryption (e.g., encrypting data before it hits your API).
    • Your encryption requirements demand FIPS 140-2 compliance or hardware security modules (HSMs).
    • You’re using Eloquent (Laravel’s default ORM) without Doctrine; consider laravel-encryption or tightenco/ziggy instead.
    • Your data volume is extremely high (this package may add overhead to bulk operations).
    • You need dynamic key management (e.g., per-user encryption keys); this package assumes static keys.

How to Pitch It (Stakeholders)

For Executives: "This package lets us encrypt sensitive data at the database level—like a vault for specific fields—without hiring crypto experts or overhauling our stack. It’s a lightweight, open-source way to meet compliance needs (e.g., GDPR) while keeping costs low. Think of it as ‘set it and forget it’ encryption for Doctrine-powered apps."

For Engineers: "If you’re using Doctrine and need to encrypt fields (e.g., user.ssn, order.payment_token) without writing custom crypto logic, this package handles the heavy lifting. It’s a Doctrine event listener that transparently encrypts/decrypts fields—just add the annotation @EncryptedField and go. Perfect for quick wins on security or compliance tickets. Downside: keys must be managed externally (e.g., env vars), and it’s not a drop-in for Eloquent."

For PMs: *"This is a low-risk way to add encryption to your roadmap. Use it for:

  • MVP compliance: Check GDPR/HIPAA boxes without delays.
  • Feature velocity: Ship encrypted fields in user profiles, audit logs, etc., faster than custom solutions.
  • Tech debt avoidance: Centralize encryption logic instead of scattering it across services. Tradeoff: Not for high-security use cases—pair with a key management service (e.g., AWS KMS) for production."*
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
milito/query-filter
apiboxsym/user-bundle
apiboxsym/health-check-bundle
jayeshmepani/jpl-moshier-ephemeris-php
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui
babelqueue/php-sdk
facebook/capi-param-builder-php
babelqueue/symfony
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours