Download the PHP package nowo-tech/doctrine-encrypt-bundle without Composer

On this page you can find all versions of the php package nowo-tech/doctrine-encrypt-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package doctrine-encrypt-bundle

Doctrine Encrypt Bundle

CI Packagist Version Packagist Downloads

⭐ Found this useful? Install from Packagist · Give it a star on GitHub so more developers can find it.

Symfony bundle to encrypt Doctrine entity fields at rest using Halite or Defuse—audited libraries, no custom crypto. For Symfony 7.4+ and 8 · PHP 8.2+. Suits GDPR and compliance (e.g. Art. 32); supports key rotation and AnonymizeBundle for anonymization and erasure.

This bundle is FrankenPHP worker mode friendly (including when the kernel is not reset between requests; see docs/FRANKENPHP-WORKER-AUDIT.md).

Table of contents

Quick search terms

Looking for Doctrine encryption, encrypt entity fields, Halite Symfony, Defuse encryption, field-level encryption, encrypt database column, Symfony encrypt attribute, Doctrine Encrypted? You're in the right place.

Features

Installation

Install from Packagist

With Symfony Flex, the recipe (when enabled) registers the bundle and creates the config file automatically. Without Flex, see docs/INSTALLATION.md for manual steps.

Manual registration in config/bundles.php:

Requirements

See docs/UPGRADING.md for compatibility notes.

Configuration

Create config/packages/nowo_doctrine_encrypt.yaml. You can use one encryptor (legacy) or multiple named profiles (recommended).

Multiple profiles (recommended)

Use different encryptors and keys per kind of data (e.g. personal vs financial):

Defuse: composer require defuse/php-encryption ^2.1

Key files: one per profile, e.g. .Halite.personal_data.key, .Defuse.financial_data.key in the profile’s secret_directory_path. Add to .gitignore:

Generate keys: php bin/console doctrine:encrypt:generate-secret-key (creates missing Halite/Defuse keys for all profiles, or pass a profile alias). See docs/COMMANDS.md.

Single encryptor (one profile)

Use one entry under profiles (e.g. default):

Key file: .Halite.default.key (or .Defuse.default.key). Full options: docs/CONFIGURATION.md.

Usage

Mark entity properties with the Encrypted attribute. Use no argument (or "default") for the default config, or the config name when using multiple profiles:

With multiple profiles, pass the config alias per property:

Values are encrypted on persist/update and decrypted on load. For programmatic use: EncryptUtil (encrypt/decrypt) and MaskUtil (mask for display). In Twig use the |decrypt and |mask filters. See docs/USAGE.md for EncryptUtil, MaskUtil, Twig filters, embedded entities, and inheritance.

Demo

The Symfony 8 demo is in demo/symfony8. It runs with FrankenPHP and Caddy (HTTP on port 80 in the container). FRANKENPHP_MODE selects classic or worker (default worker in .env.example) — docs/DEMO.md.

Development

Run tests and QA with Docker: make up && make install && make test (or make test-coverage, make qa). Without Docker: composer install && composer test. See Makefile for all targets.

Documentation

Additional documentation

Tests and coverage

License

The MIT License (MIT). Please see LICENSE for more information.

Author

Created by Héctor Franco Aceituno at Nowo.tech


All versions of doctrine-encrypt-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2 <8.6
doctrine/doctrine-bundle Version ^2.13 || ^3.0
doctrine/orm Version ^3.7
paragonie/halite Version ^5.1
paragonie/sodium_compat Version ^1.20 || ^2.0
psr/log Version ^1.1 || ^2.0 || ^3.0
symfony/config Version ^7.4 || ^8.0
symfony/console Version ^7.4 || ^8.0
symfony/dependency-injection Version ^7.4 || ^8.0
symfony/filesystem Version ^7.4 || ^8.0
symfony/http-kernel Version ^7.4 || ^8.0
symfony/property-access Version ^7.4 || ^8.0
symfony/var-exporter Version ^7.4 || ^8.0
symfony/yaml Version ^7.4 || ^8.0
twig/twig Version ^3.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package nowo-tech/doctrine-encrypt-bundle contains the following files

Loading the files please wait ...