PHPackages                             finitefield-org/mask-pii - 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. [Mail &amp; Notifications](/categories/mail)
4. /
5. finitefield-org/mask-pii

ActiveLibrary[Mail &amp; Notifications](/categories/mail)

finitefield-org/mask-pii
========================

Lightweight, customizable PII masking for emails and phone numbers.

v0.2.0(3mo ago)00[1 issues](https://github.com/finitefield-org/mask-pii/issues)MITShellPHP &gt;=8.0

Since Jan 28Pushed 3mo agoCompare

[ Source](https://github.com/finitefield-org/mask-pii)[ Packagist](https://packagist.org/packages/finitefield-org/mask-pii)[ Docs](https://finitefield.org/en/oss/mask-pii)[ RSS](/packages/finitefield-org-mask-pii/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (2)Used By (0)

mask-pii
========

[](#mask-pii)

mask-pii is a lightweight, customizable library for masking Personally Identifiable Information (PII) such as email addresses and phone numbers.

The project provides consistent masking behavior across multiple language implementations, with an emphasis on safety, speed, and easy integration into logging or data processing pipelines.

- 🌐 Official website:
- 🏢 Developed by: [Finite Field, K.K.](https://finitefield.org/en/)

Language-specific implementations
---------------------------------

[](#language-specific-implementations)

- Go: see `go/README.md`
- D: see `d/README.md`
- Bash: see `bash/README.md`
- Carbon: see `carbon/README.md`
- AWK: see `awk/README.md`
- Deno: see `deno/README.md`
- Crystal: see `crystal/README.md`
- JavaScript: see `javascript/README.md`
- Elixir: see `elixir/README.md`
- Groovy: see `groovy/README.md`
- Haskell: see `haskell/README.md`
- Hare: see `hare/README.md`
- Julia: see `julia/README.md`
- OCaml: see `ocaml/README.md`
- Lua: see `lua/README.md`
- Nushell: see `nushell/README.md`
- PHP: see `php/README.md`
- PowerShell: see `powershell/README.md`
- Pony: see `pony/README.md`
- Python: see `python/README.md`
- R: see `r/README.md`
- Red: see `red/README.md`
- Rust: see `rust/README.md`
- Ruby: see `ruby/README.md`
- Swift: see `swift/README.md`
- Odin: see `odin/README.md`
- V: see `v/README.md`
- Fish: see `fish/README.md`
- Zsh: see `zsh/README.md`
- Zig: see `zig/README.md`
- Racket: see `racket/README.md`
- Common Lisp: see `common-lisp/README.md`

Core concepts
-------------

[](#core-concepts)

- **Email masking:** masks the local part while preserving the domain.
- **Phone masking:** detects common international formats and masks all digits except the last 4 while keeping separators.
- **Customizable:** configurable mask character and masking targets.

Notes
-----

[](#notes)

Each language implementation documents its own installation and usage details in its respective README.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance80

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity29

Early-stage or recently created project

 Bus Factor1

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

Unknown

Total

1

Last Release

104d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8cf2c2e8ee9d3867b4c316b2248c7d1a332a49be5e00f5a4fb181540307f7217?d=identicon)[finitefield](/maintainers/finitefield)

---

Top Contributors

[![tkfinitefield](https://avatars.githubusercontent.com/u/83720274?v=4)](https://github.com/tkfinitefield "tkfinitefield (33 commits)")

---

Tags

emailphoneprivacypiiMasking

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/finitefield-org-mask-pii/health.svg)

```
[![Health](https://phpackages.com/badges/finitefield-org-mask-pii/health.svg)](https://phpackages.com/packages/finitefield-org-mask-pii)
```

###  Alternatives

[egulias/email-validator

A library for validating emails against several RFCs

11.6k691.3M307](/packages/egulias-email-validator)[sendgrid/sendgrid

This library allows you to quickly and easily send emails through Twilio SendGrid using PHP.

1.5k47.5M164](/packages/sendgrid-sendgrid)[pelago/emogrifier

Converts CSS styles into inline style attributes in your HTML code

94944.1M110](/packages/pelago-emogrifier)[zbateson/mail-mime-parser

MIME email message parser

53949.2M79](/packages/zbateson-mail-mime-parser)[soundasleep/html2text

A PHP script to convert HTML into a plain text format

48419.5M75](/packages/soundasleep-html2text)[opcodesio/mail-parser

Parse emails without the mailparse extension

216.8M8](/packages/opcodesio-mail-parser)

PHPackages © 2026

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