PHP code example of nowo-tech / anonymize-bundle
1. Go to this page and download the library: Download nowo-tech/anonymize-bundle library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
nowo-tech / anonymize-bundle example snippets
return [
// ...
Nowo\AnonymizeBundle\AnonymizeBundle::class => ['dev' => true, 'test' => true],
];
use Nowo\AnonymizeBundle\Attribute\Anonymize;
use Nowo\AnonymizeBundle\Attribute\AnonymizeProperty;
#[ORM\Entity]
#[Anonymize]
class User
{
#[AnonymizeProperty(type: 'email', weight: 1)]
private ?string $email = null;
#[AnonymizeProperty(type: 'name', weight: 2)]
private ?string $firstName = null;
}