PHPackages                             h2entwicklung/doctrine-encrypt-bundle - 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. [Database &amp; ORM](/categories/database)
4. /
5. h2entwicklung/doctrine-encrypt-bundle

ActiveLibrary[Database &amp; ORM](/categories/database)

h2entwicklung/doctrine-encrypt-bundle
=====================================

Encrypted symfony entity's by verified and standardized libraries Works with Symfony &gt;5.1. This Package replaces the abandoned GiveMeAllYourCats/DoctrineEncryptBundle which is not longer maintained

4.0.6(4y ago)15831[1 PRs](https://github.com/h2Entwicklung/DoctrineEncryptBundle/pulls)MITPHPPHP ^7.2

Since Nov 14Pushed 4y agoCompare

[ Source](https://github.com/h2Entwicklung/DoctrineEncryptBundle)[ Packagist](https://packagist.org/packages/h2entwicklung/doctrine-encrypt-bundle)[ RSS](/packages/h2entwicklung-doctrine-encrypt-bundle/feed)WikiDiscussions master Synced 2d ago

READMEChangelog (1)Dependencies (10)Versions (29)Used By (0)

[![Logo](https://camo.githubusercontent.com/4a1e91cf1cded782059fd9c2d47889eae038994f49e2144fe03a10d23d24af5b/68747470733a2f2f692e696d6775722e636f6d2f73666d553677742e706e67)](https://github.com/michaeldegroot/DoctrineEncryptBundle)

[![Build status](https://camo.githubusercontent.com/f2eaf756d64c40bf0319a269ec449aedc7595ec01b66164915fbe159d8323ec0/68747470733a2f2f7472617669732d63692e6f72672f6d69636861656c646567726f6f742f446f637472696e65456e637279707442756e646c652e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/michaeldegroot/DoctrineEncryptBundle)[![License](https://camo.githubusercontent.com/8b91009a72b0dd2349df57cd06f3070c90ae9be1b2346b0ec2f0626d664296cb/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f6d69636861656c646567726f6f742f446f637472696e65456e637279707442756e646c652e737667)](https://raw.githubusercontent.com/michaeldegroot/DoctrineEncryptBundle/master/LICENSE)[![Latest version](https://camo.githubusercontent.com/910b6b86d5fb724141331eb2b0fad1ccb2d798badd375c398b2128f8e8211558/68747470733a2f2f706f7365722e707567782e6f72672f6d69636861656c646567726f6f742f646f637472696e652d656e63727970742d62756e646c652f76657273696f6e)](https://packagist.org/packages/michaeldegroot/doctrine-encrypt-bundle)[![Latest Unstable Version](https://camo.githubusercontent.com/5bebd7e173c357c2cc540966af8cab9d1906999618ae63b1bc9aadcec0c39c84/68747470733a2f2f706f7365722e707567782e6f72672f6d69636861656c646567726f6f742f646f637472696e652d656e63727970742d62756e646c652f762f756e737461626c65)](https://packagist.org/packages/michaeldegroot/doctrine-encrypt-bundle)[![Total downloads](https://camo.githubusercontent.com/61520baedc91be22b54c91a9db82802ccbbf9b4731ea854fb463c37f6f13fffb/68747470733a2f2f706f7365722e707567782e6f72672f6d69636861656c646567726f6f742f646f637472696e652d656e63727970742d62756e646c652f646f776e6c6f616473)](https://packagist.org/packages/michaeldegroot/doctrine-encrypt-bundle)[![Downloads this month](https://camo.githubusercontent.com/ee4f9f911814e14422b7b6297ca25d3db6a07cab21c57c693409e802aed85e8e/68747470733a2f2f706f7365722e707567782e6f72672f6d69636861656c646567726f6f742f646f637472696e652d656e63727970742d62756e646c652f642f6d6f6e74686c79)](https://packagist.org/packages/michaeldegroot/doctrine-encrypt-bundle)

### Introduction

[](#introduction)

This is a fork from the original bundle created by ambta which can be found here: [ambta/DoctrineEncryptBundle](https://github.com/ambta/DoctrineEncryptBundle)

This bundle has updated security by not rolling it's own encryption and using verified standardized library's from the field.

### Using [Halite](https://github.com/paragonie/halite)

[](#using-halite)

*All deps are already installed with this package*

```
// Config.yml
ambta_doctrine_encrypt:
    encryptor_class: Halite
```

### Using [Defuse](https://github.com/defuse/php-encryption)

[](#using-defuse)

*You will need to require Defuse yourself*

`composer require "defuse/php-encryption ^2.0"`

```
// Config.yml
ambta_doctrine_encrypt:
    encryptor_class: Defuse
```

### Secret key

[](#secret-key)

The secret key should be a max 32 byte hexadecimal string (`[0-9a-fA-F]`).

Secret key is generated if there is no key found. This is automatically generated and stored in the folder defined in the configuration

```
// Config.yml
ambta_doctrine_encrypt:
    secret_directory_path: '%kernel.project_dir%'   # Default value
```

Filename example: `.DefuseEncryptor.key` or `.HaliteEncryptor.key`

**Do not forget to add these files to your .gitignore file, you do not want this on your repository!**

### Documentation

[](#documentation)

- [Installation](src/Resources/doc/installation.md)
- [Requirements](src/Resources/doc/installation.md#requirements)
- [Configuration](src/Resources/doc/configuration.md)
- [Usage](src/Resources/doc/usage.md)
- [Console commands](src/Resources/doc/commands.md)
- [Custom encryption class](src/Resources/doc/custom_encryptor.md)

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community19

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor3

3 contributors hold 50%+ of commits

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

Every ~122 days

Recently: every ~205 days

Total

27

Last Release

1733d ago

Major Versions

1.0.0 → 2.0.02012-11-17

2.5.4 → 3.0.12017-05-14

3.0.3 → 4.0.02018-01-18

PHP version history (4 changes)1.0.0PHP &gt;=5.3.2

2.4.1PHP &gt;=5.4

4.0.0PHP &gt;=7.0

4.0.3PHP ^7.2

### Community

Maintainers

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

---

Top Contributors

[![absolute-quantum](https://avatars.githubusercontent.com/u/1427870?v=4)](https://github.com/absolute-quantum "absolute-quantum (61 commits)")[![dev-marcel](https://avatars.githubusercontent.com/u/11071510?v=4)](https://github.com/dev-marcel "dev-marcel (33 commits)")[![sh41](https://avatars.githubusercontent.com/u/6237786?v=4)](https://github.com/sh41 "sh41 (25 commits)")[![vmelnik-ukraine](https://avatars.githubusercontent.com/u/1994051?v=4)](https://github.com/vmelnik-ukraine "vmelnik-ukraine (23 commits)")[![andheiberg](https://avatars.githubusercontent.com/u/820962?v=4)](https://github.com/andheiberg "andheiberg (8 commits)")[![Zombaya](https://avatars.githubusercontent.com/u/13340313?v=4)](https://github.com/Zombaya "Zombaya (6 commits)")[![michaelfeinbier](https://avatars.githubusercontent.com/u/503543?v=4)](https://github.com/michaelfeinbier "michaelfeinbier (6 commits)")[![encreinformatique](https://avatars.githubusercontent.com/u/22235605?v=4)](https://github.com/encreinformatique "encreinformatique (4 commits)")[![ambta](https://avatars.githubusercontent.com/u/10357868?v=4)](https://github.com/ambta "ambta (4 commits)")[![benr77](https://avatars.githubusercontent.com/u/2156742?v=4)](https://github.com/benr77 "benr77 (3 commits)")[![mkraemer](https://avatars.githubusercontent.com/u/1070200?v=4)](https://github.com/mkraemer "mkraemer (2 commits)")[![andreybolonin](https://avatars.githubusercontent.com/u/2576509?v=4)](https://github.com/andreybolonin "andreybolonin (2 commits)")[![maks-rafalko](https://avatars.githubusercontent.com/u/3725595?v=4)](https://github.com/maks-rafalko "maks-rafalko (2 commits)")[![PH-Lars](https://avatars.githubusercontent.com/u/10357876?v=4)](https://github.com/PH-Lars "PH-Lars (1 commits)")[![BboyKeen](https://avatars.githubusercontent.com/u/1192309?v=4)](https://github.com/BboyKeen "BboyKeen (1 commits)")[![Valegar](https://avatars.githubusercontent.com/u/658117?v=4)](https://github.com/Valegar "Valegar (1 commits)")[![wassafr](https://avatars.githubusercontent.com/u/10235180?v=4)](https://github.com/wassafr "wassafr (1 commits)")[![wcoppens](https://avatars.githubusercontent.com/u/181460?v=4)](https://github.com/wcoppens "wcoppens (1 commits)")[![westinpigott](https://avatars.githubusercontent.com/u/1909859?v=4)](https://github.com/westinpigott "westinpigott (1 commits)")[![dbu](https://avatars.githubusercontent.com/u/76576?v=4)](https://github.com/dbu "dbu (1 commits)")

---

Tags

symfonydoctrineencryptdecryptDefusehalite

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/h2entwicklung-doctrine-encrypt-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/h2entwicklung-doctrine-encrypt-bundle/health.svg)](https://phpackages.com/packages/h2entwicklung-doctrine-encrypt-bundle)
```

###  Alternatives

[michaeldegroot/doctrine-encrypt-bundle

Encrypted symfony entity's by verified and standardized libraries

1521.0M1](/packages/michaeldegroot-doctrine-encrypt-bundle)[doctrineencryptbundle/doctrine-encrypt-bundle

Encrypted symfony entity's by verified and standardized libraries

29415.1k](/packages/doctrineencryptbundle-doctrine-encrypt-bundle)[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)

PHPackages © 2026

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