mask-pii for PHP

PHP uchun mask-pii implementatsiyasi, loglar va data pipeline larda email hamda telefon PII ni maskalash uchun.

email ni maskalash

Masks local parts while preserving domain visibility.

telefonni maskalash

Masks sensitive digits while keeping format and suffix visibility.

Builder uslubidagi API

Enable email/phone masking and mask character explicitly before processing.

ornating va boshlang

PHP [published: Packagist 0.2.0]: Quyidagi joriy o‘rnatish usulidan foydalaning, PHP API’sini yuklang va minimal misolni ishga tushiring. Misol e-pochta va telefonni niqoblashni aniq yoqadi hamda kutilgan natijani ko‘rsatadi.

ornatish

composer require finitefield-org/mask-pii

foydalanish

example.php
<?php

use MaskPII\Masker;

$masker = (new Masker())
    ->maskEmails()
    ->maskPhones()
    ->withMaskChar("*");

echo $masker->process("Contact: alice@example.com or 090-1234-5678.");
// Contact: a****@example.com or ***-****-5678.
// Expected output: "Contact: a####@example.com or ###-####-5678."
izoh

Please check the README for exact package ecosystem details and API examples for this language.

keyingi

GitHub