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(6mo ago)00[1 issues](https://github.com/finitefield-org/mask-pii/issues)MITShellPHP &gt;=8.0

Since Jan 28Pushed 4w 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 1w ago

READMEChangelog (2)Dependencies (1)Versions (3)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

31

—

LowBetter than 65% of packages

Maintenance82

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity31

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

202d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/2323649?v=4)[finitefield](/maintainers/finitefield)[@finitefield](https://github.com/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

[zbateson/mail-mime-parser

MIME email message parser

55054.8M105](/packages/zbateson-mail-mime-parser)

PHPackages © 2026

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