PHPackages                             formatd/doctrine-encryption - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. formatd/doctrine-encryption

ActiveNeos-package

formatd/doctrine-encryption
===========================

This package provides a string doctrine datatype that is stored encrypted in the persistence

v1.0.0(4y ago)02MITPHP

Since Sep 8Pushed 4y ago1 watchersCompare

[ Source](https://github.com/Format-D/FormatD.DoctrineEncryption)[ Packagist](https://packagist.org/packages/formatd/doctrine-encryption)[ RSS](/packages/formatd-doctrine-encryption/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

FormatD.DoctrineEncryption
==========================

[](#formatddoctrineencryption)

This Neos Flow package lets you encrypt your persisted data in the database.

What does it do?
----------------

[](#what-does-it-do)

It hooks into the doctrine persistence layer and encrypts data when it is written to the database. The data is decrypted again when the models are loaded from the database.

The package is inspired by several packages like this for other frameworks or directly for doctrine.

Kompatiblität
-------------

[](#kompatiblität)

Versioning scheme:

```
 1.0.0
 | | |
 | | Bugfix Releases (non breaking)
 | Neos Compatibility Releases (non breaking except framework dependencies)
 Feature Releases (breaking)

```

Releases und compatibility:

Package-VersionNeos Flow Version1.0.x&gt;= 5.xSetup
-----

[](#setup)

Firstly set your private encryption key in the configuration. (If the encryption key is lost your data in the database is lost too)

```
FormatD:
  DoctrineEncryption:
    secretKey: ''

```

Make database columns encrypted
-------------------------------

[](#make-database-columns-encrypted)

There are two ways to configure encrypted database columns. Either via annotation in the model itself or by configuration in the Settings.yaml.

### Configure with Annotation

[](#configure-with-annotation)

You can use `text_encrypted` or `array_encrypted` as column type.

Example:

```

	/**
	 * @var string
	 * @ORM\Column(type="text_encrypted")
	 */
	protected $myConfidentialProperty = '';

```

### Configure in Settings

[](#configure-in-settings)

If you want to entrypt data from another package you can do this by adding configuration. Currently only `method: default` is supported.

Example:

```
FormatD:
  DoctrineEncryption:
    entities:
      MyPackage\Website\Domain\Model\User:
        phoneNumber:
          method: default
        name.firstName:
          method: default
        name.lastName:
          method: default
        name.fullName:
          method: default
        primaryElectronicAddress.identifier:
          method: default

```

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

1712d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/bb327c5b80466d2d0236e188879eb7bfefe44330e56fe7cc27b5417a5b9689ea?d=identicon)[formatd](/maintainers/formatd)

---

Top Contributors

[![bweinzierl](https://avatars.githubusercontent.com/u/30659291?v=4)](https://github.com/bweinzierl "bweinzierl (3 commits)")

### Embed Badge

![Health badge](/badges/formatd-doctrine-encryption/health.svg)

```
[![Health](https://phpackages.com/badges/formatd-doctrine-encryption/health.svg)](https://phpackages.com/packages/formatd-doctrine-encryption)
```

###  Alternatives

[neos/neos

An open source Content Application Platform based on Flow. A set of core Content Management features is resting within a larger context that allows you to build a perfectly customized experience for your users.

116989.0k674](/packages/neos-neos)[neos/eel

The Embedded Expression Language (Eel) is a building block for creating Domain Specific Languages

122.0M27](/packages/neos-eel)[neos/media

The Media package

101.1M45](/packages/neos-media)[neos/flow-base-distribution

Flow Base Distribution

2159.5k](/packages/neos-flow-base-distribution)[avency/neos-vardump

Neos VarDump Package

147.1k](/packages/avency-neos-vardump)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
