PHPackages                             weichie-com/blur - 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. [Security](/categories/security)
4. /
5. weichie-com/blur

ActiveLibrary[Security](/categories/security)

weichie-com/blur
================

PII detection and de-identification SDK for BeNeLux (Belgium, Netherlands, Luxembourg)

v1.1.2(2mo ago)1227—5.6%MITPHPPHP &gt;=8.1CI failing

Since Nov 21Pushed 5mo agoCompare

[ Source](https://github.com/Weichie-com/blur)[ Packagist](https://packagist.org/packages/weichie-com/blur)[ Docs](https://github.com/weichie-com/blur)[ RSS](/packages/weichie-com-blur/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (4)Versions (5)Used By (0)

Blur
====

[](#blur)

[![PHP Version](https://camo.githubusercontent.com/7663c9d53dc13cedaf0660a8745a7e77d2dd711257f36aa86ebce12a0600ef42/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344382e312d626c75652e737667)](https://php.net)[![License](https://camo.githubusercontent.com/8bb50fd2278f18fc326bf71f6e88ca8f884f72f179d3e555e20ed30157190d0d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e2e737667)](LICENSE)[![Tests](https://camo.githubusercontent.com/ff6e5efbf750578fbba8f73f5ed96c82198d143d4d6275ae337ad382c5e19f4d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f74657374732d3131332532307061737365642d627269676874677265656e2e737667)](phpunit.xml)[![Coverage](https://camo.githubusercontent.com/cacbc18400fc0d38d9e0abaf130447257466a41c364ab6a2c1e9c6cae5f91aa4/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f7665726167652d333534253230617373657274696f6e732d626c75652e737667)](tests/)

A data protection and de-identification SDK focused on **BeNeLux** countries (Belgium, Netherlands, Luxembourg), inspired by [Microsoft Presidio](https://github.com/microsoft/presidio).

---

Features
--------

[](#features)

- **Pattern-based PII Detection**: Fast and accurate entity recognition using regex patterns
- **Full Validation**: Checksum validation (Luhn, mod-97, 11-proof) for high accuracy
- **BeNeLux-Specific Recognizers**:
    - 🇳🇱 Dutch BSN (Burgerservicenummer) with 11-proof validation
    - 🇧🇪 Belgian National Number with mod-97 validation
    - 🇱🇺 Luxembourg National ID
    - BeNeLux IBAN codes with mod-97 checksum
    - Phone numbers for BE/NL/LU (using libphonenumber)
- **Generic Recognizers**: Email, Credit Card (Luhn), IP Address, URL
- **Multiple Anonymization Strategies**:
    - Replace with custom values
    - Redact (remove completely)
    - Mask (partial or full)
    - Hash (SHA-256/SHA-512)
    - Encrypt/Decrypt (AES-256-CBC)
- **Context Enhancement**: Boost detection confidence with contextual keywords
- **UTF-8 Support**: Full multibyte string handling
- **Type-Safe**: Built with PHP 8.1+ strict types

Installation
------------

[](#installation)

Install via Composer:

```
composer require weichie-com/blur
```

Or add to your `composer.json`:

```
{
    "require": {
        "weichie-com/blur": "^1.0"
    }
}
```

### Requirements

[](#requirements)

- **PHP 8.1+** (for strict types and named parameters)
- **ext-mbstring**: Multibyte string support (UTF-8)
- **ext-openssl**: AES encryption support
- **giggsey/libphonenumber-for-php**: Phone number validation (auto-installed)

Quick Start
-----------

[](#quick-start)

```
