PHPackages                             hec-franco/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. hec-franco/doctrine-encrypt-bundle

Abandoned → [nowo-tech/doctrine-encrypt-bundle](/?search=nowo-tech%2Fdoctrine-encrypt-bundle)Library[Database &amp; ORM](/categories/database)

hec-franco/doctrine-encrypt-bundle
==================================

Encrypted symfony 6|7 entity's by verified and standardized libraries

v1.0.7(2y ago)282[1 PRs](https://github.com/HecFranco/DoctrineEncryptBundle/pulls)MITPHPPHP ^8.0

Since Feb 2Pushed 2y agoCompare

[ Source](https://github.com/HecFranco/DoctrineEncryptBundle)[ Packagist](https://packagist.org/packages/hec-franco/doctrine-encrypt-bundle)[ RSS](/packages/hec-franco-doctrine-encrypt-bundle/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (10)Versions (9)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

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor2

2 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 ~1 days

Total

8

Last Release

825d ago

### Community

Maintainers

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

---

Top Contributors

[![dev-marcel](https://avatars.githubusercontent.com/u/11071510?v=4)](https://github.com/dev-marcel "dev-marcel (44 commits)")[![vmelnik-ukraine](https://avatars.githubusercontent.com/u/1994051?v=4)](https://github.com/vmelnik-ukraine "vmelnik-ukraine (23 commits)")[![HecFranco](https://avatars.githubusercontent.com/u/24323276?v=4)](https://github.com/HecFranco "HecFranco (12 commits)")[![michaelfeinbier](https://avatars.githubusercontent.com/u/503543?v=4)](https://github.com/michaelfeinbier "michaelfeinbier (6 commits)")[![steveWinter](https://avatars.githubusercontent.com/u/1171712?v=4)](https://github.com/steveWinter "steveWinter (6 commits)")[![aburov-dev](https://avatars.githubusercontent.com/u/39696569?v=4)](https://github.com/aburov-dev "aburov-dev (4 commits)")[![ambta](https://avatars.githubusercontent.com/u/10357868?v=4)](https://github.com/ambta "ambta (4 commits)")[![JoeCotellese](https://avatars.githubusercontent.com/u/1251258?v=4)](https://github.com/JoeCotellese "JoeCotellese (3 commits)")[![PhilETaylor](https://avatars.githubusercontent.com/u/400092?v=4)](https://github.com/PhilETaylor "PhilETaylor (2 commits)")[![maks-rafalko](https://avatars.githubusercontent.com/u/3725595?v=4)](https://github.com/maks-rafalko "maks-rafalko (2 commits)")[![mkraemer](https://avatars.githubusercontent.com/u/1070200?v=4)](https://github.com/mkraemer "mkraemer (2 commits)")[![Valegar](https://avatars.githubusercontent.com/u/658117?v=4)](https://github.com/Valegar "Valegar (1 commits)")[![BboyKeen](https://avatars.githubusercontent.com/u/1192309?v=4)](https://github.com/BboyKeen "BboyKeen (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)")[![jongotlin](https://avatars.githubusercontent.com/u/165154?v=4)](https://github.com/jongotlin "jongotlin (1 commits)")[![westinpigott](https://avatars.githubusercontent.com/u/1909859?v=4)](https://github.com/westinpigott "westinpigott (1 commits)")[![jr-k](https://avatars.githubusercontent.com/u/3283866?v=4)](https://github.com/jr-k "jr-k (1 commits)")[![PH-Lars](https://avatars.githubusercontent.com/u/10357876?v=4)](https://github.com/PH-Lars "PH-Lars (1 commits)")[![benr77](https://avatars.githubusercontent.com/u/2156742?v=4)](https://github.com/benr77 "benr77 (1 commits)")

---

Tags

symfonydoctrineencryptdecryptDefusehalite

###  Code Quality

TestsPHPUnit

### Embed Badge

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

```
[![Health](https://phpackages.com/badges/hec-franco-doctrine-encrypt-bundle/health.svg)](https://phpackages.com/packages/hec-franco-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)
