PHPackages                             jfnetwork/doctrine-encrypted-object - 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. jfnetwork/doctrine-encrypted-object

ActiveSymfony-bundle

jfnetwork/doctrine-encrypted-object
===================================

Doctrine mapping type to store encrypted objects

3.0.0(2y ago)0401MITPHPPHP &gt;=8.1

Since Jan 9Pushed 1y agoCompare

[ Source](https://github.com/jfnetwork/DoctrineEncrypedObject)[ Packagist](https://packagist.org/packages/jfnetwork/doctrine-encrypted-object)[ RSS](/packages/jfnetwork-doctrine-encrypted-object/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (6)Versions (15)Used By (0)

Doctrine Encrypted Object Mapping
=================================

[](#doctrine-encrypted-object-mapping)

This bundle implement a doctrine mapping type for objects, that should be encrypted in storage.

Install
-------

[](#install)

The bundle can be installed with composer:

```
composer require jfnetwork/doctrine-encrypted-object

```

For Sodium or Openssl encryption are corresponding PHP extensions required. For `Defuse` is [defuse/php-encryption](https://github.com/defuse/php-encryption) package required

Sample Configuration
--------------------

[](#sample-configuration)

you should provide two environment variables:

```
DOCTRINE_ENCRYPTED_OBJECT_KEY=xxx
DOCTRINE_ENCRYPTED_OBJECT_ENCRYPTION_WAY=sodium
```

The `DOCTRINE_ENCRYPTED_OBJECT_ENCRYPTION_WAY` variable is optional and has value `sodium` by default.

The `DOCTRINE_ENCRYPTED_OBJECT_KEY` variable should be generated with the command:

```
bin/console jf:doctrine-encrypted-object:create-key {encryption_way}

```

where encryption way is one of `sodium`, `openssl`, `defuse`

Usage
-----

[](#usage)

### Annotations

[](#annotations)

```
/**
 * @ORM\Column(name="your_secure_field", type="encoded_object")
 */
private $yourSecureField;
```

### Attributes

[](#attributes)

```
use Jfnetwork\DoctrineEncryptedObject\DoctrineEncryptedObject;

#[ORM\Column(type: DoctrineEncryptedObject::TYPE_NAME)]
private $yourSecureField;
```

Upgrade from 2.0 to 3.0
-----------------------

[](#upgrade-from-20-to-30)

You should set `DOCTRINE_ENCRYPTED_OBJECT_ENCRYPTION_WAY` environment variable to `defuse`. No other configuration is required. Some migration tool to other encryption ways will be provided later.

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance36

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity79

Established project with proven stability

 Bus Factor1

Top contributor holds 88.9% 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

Every ~168 days

Recently: every ~316 days

Total

14

Last Release

852d ago

Major Versions

1.1.2 → 2.0.02021-01-19

1.1.3 → 2.1.02021-07-08

2.1.0 → 3.0.02024-01-08

PHP version history (3 changes)1.0.0PHP &gt;=7.0

2.0.0PHP 8.0.\*

3.0.0PHP &gt;=8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/688776?v=4)[Anton Eremin](/maintainers/eremin)[@eremin](https://github.com/eremin)

![](https://www.gravatar.com/avatar/5af06781459ac5fba8f1f1ae3375dd47db437fa2cf2d4e43230971774eac1f32?d=identicon)[jfnetwork](/maintainers/jfnetwork)

---

Top Contributors

[![eremin](https://avatars.githubusercontent.com/u/688776?v=4)](https://github.com/eremin "eremin (16 commits)")[![swnjfn](https://avatars.githubusercontent.com/u/74919070?v=4)](https://github.com/swnjfn "swnjfn (2 commits)")

### Embed Badge

![Health badge](/badges/jfnetwork-doctrine-encrypted-object/health.svg)

```
[![Health](https://phpackages.com/badges/jfnetwork-doctrine-encrypted-object/health.svg)](https://phpackages.com/packages/jfnetwork-doctrine-encrypted-object)
```

###  Alternatives

[sylius/sylius

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

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

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

1.3k1.3M152](/packages/sulu-sulu)[contao/core-bundle

Contao Open Source CMS

1231.6M2.3k](/packages/contao-core-bundle)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k15.4k](/packages/prestashop-prestashop)[shopware/storefront

Storefront for Shopware

684.2M148](/packages/shopware-storefront)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.2M386](/packages/shopware-core)

PHPackages © 2026

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