Download the PHP package nowo-tech/anonymize-bundle without Composer

On this page you can find all versions of the php package nowo-tech/anonymize-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 anonymize-bundle

Anonymize 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 for database anonymization, test data generation, and GDPR compliance. Anonymize database records using Doctrine attributes and Faker generators. Perfect for development environments, testing, data masking, and privacy compliance.

πŸ“‹ Compatible with Symfony 6.1+, 7.x, and 8.x - This bundle requires Symfony 6.1 or higher (Symfony 6.0 is not supported).

This bundle is FrankenPHP worker mode friendly.

Table of contents

What is this?

This bundle helps you anonymize sensitive data in your Symfony applications for:

⚠️ Important: This bundle is development-only and should never be installed or used in production environments. The bundle includes built-in protection to prevent execution in production.

Quick Search Terms

Looking for: database anonymization, test data generator, GDPR compliance, data masking, Symfony anonymize, Doctrine anonymization, Faker bundle, privacy tools, PII anonymization, data privacy, test fixtures, development tools? You've found the right bundle!

Features

Installation

⚠️ Important: This bundle is development-only. Always install it as a dev dependency.

Then, register the bundle in your config/bundles.php only for dev and test environments:

⚠️ Security: The bundle will automatically prevent execution in production environments. The command will fail if run outside of dev or test environments.

Quick Start

  1. Mark an entity for anonymization with the #[Anonymize] attribute:

  2. Run the anonymization command:

You can limit to specific connections (--connection) or entities (--entity, e.g. to test one entity or its anonymizeService). See COMMANDS.md for all options.

For detailed usage examples, see USAGE.md.

Requirements

Note: This bundle requires Symfony 6.1 or higher. Symfony 6.0 is not supported because the bundle uses the #[Autowire] attribute for dependency injection, which is only available from Symfony 6.1 onwards.

Configuration

The bundle works with default settings.

⚠️ Note: The configuration file is only automatically created when:

  • Installing from Packagist with Symfony Flex
  • AND the recipe is published in the Symfony recipes-contrib repository

Current Status: The recipe is not yet published, so you need to manually create the file (see below).

If the configuration file was not created automatically, create it manually at config/packages/dev/nowo_anonymize.yaml:

See CONFIGURATION.md for detailed configuration options.

Commands

The bundle provides six console commands:

Note: MongoDB ODM support is planned for future releases. The nowo:anonymize:run command currently only processes Doctrine ORM connections. However, you can use nowo:anonymize:generate-mongo-field to prepare MongoDB documents with the anonymized field.

See COMMANDS.md for detailed command documentation and examples.

Faker Types

The bundle supports 40 faker types for anonymizing various data types, including:

See FAKERS.md for complete list and configuration options.

Documentation

Additional documentation

Testing

The bundle includes a comprehensive testing script to verify all commands work correctly:

The script tests 26 command combinations (entries in scripts/test-commands.sh). See TESTING_COMMANDS.md for details.

Tests and coverage

License

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

Contributing

We welcome contributions! Please see CONTRIBUTING.md for details on how to contribute to this project.

For information about our Git workflow and branching strategy, see BRANCHING.md.

Roadmap

We have an extensive roadmap for future enhancements. See ROADMAP.md for details on planned features including:

Current Status (1.0.42)

Planned Phases

Check out the full roadmap for detailed information about upcoming features, priorities, and timelines.

Author

Created by HΓ©ctor Franco Aceituno at Nowo.tech


All versions of anonymize-bundle with dependencies

PHP Build Version
Package Version
Requires php Version >=8.2 <8.6
doctrine/dbal Version ^2.13 || ^3.0 || ^4.0
doctrine/doctrine-bundle Version ^2.8 || ^3.0
doctrine/orm Version ^2.13 || ^3.0
fakerphp/faker Version ^1.23
psr/clock Version ^1.0
symfony/config Version ^6.0 || ^7.0 || ^8.0
symfony/console Version ^6.0 || ^7.0 || ^8.0
symfony/dependency-injection Version ^6.0 || ^7.0 || ^8.0
symfony/framework-bundle Version ^6.0 || ^7.0 || ^8.0
symfony/http-kernel Version ^6.0 || ^7.0 || ^8.0
symfony/process Version ^6.0 || ^7.0 || ^8.0
symfony/yaml Version ^6.0 || ^7.0 || ^8.0
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/anonymize-bundle contains the following files

Loading the files please wait ...