PHPackages                             rodrom/onomastica - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. rodrom/onomastica

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

rodrom/onomastica
=================

Library for normalization of personal names

v0.2.1(6mo ago)05MITPHPPHP &gt;=8.3CI passing

Since Oct 23Pushed 6mo agoCompare

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

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

Onomastica: Spanish / Multilingual Name Normalizer
==================================================

[](#onomastica-spanish--multilingual-name-normalizer)

> **Lightweight, framework/agnostic PHP Library to normalize personal names** following Spanish, Catalan, French and other languages conventions (apostrophes, connectors like `de`, `d’`, `del`, `y`, `i`, etc.). Designed to be suitable for use in any PHP project.

---

Features
--------

[](#features)

- Trim and collapse whitespace.
- Correct casing (taking into account multibyte characters.)
- Handle language-specific particles and connectors (`de`, `d’`, `del`, `y`, `von`, etc.)
- Normalize different apostrophe characters and fix spacing around them.

---

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

[](#installation)

Require via Composer:

```
composer require rodrom/onomastica
```

---

Quick Usage
-----------

[](#quick-usage)

```
use Rodrom\Onomastica\NameNormalizer;

echo NameNormalizer::normalize('   Ignacio   DE   loYOla ');    // "Ignacio de Loyola"
echo NameNormalizer::normalize('IÑIGO López DE OÑAZ Y Loyola'); // "Iñigo López de Oñaz y Loyola"
echo NameNormalizer::normalize('María DE LAS Mercedes GARCÍA Y García');  // "José Antonio García y García"
echo NameNormalizer::normalize("JAUME D'ARAGó-URGELL I MONTFERRAT"); // "Jaume d’Aragó-Urgell i Montferrat"
```

---

Changelog
---------

[](#changelog)

[Changelog](CHANGELOG.md)

License
-------

[](#license)

[MIT License](LICENSE)

Copyright © 2025 rodrom

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance66

Regular maintenance activity

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 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

Every ~0 days

Total

3

Last Release

207d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/91325d2ef89ec7d40ac882ddef4a3189161519523727012d13b93ba3fcd11f42?d=identicon)[rodrom](/maintainers/rodrom)

---

Top Contributors

[![rodrom](https://avatars.githubusercontent.com/u/17688194?v=4)](https://github.com/rodrom "rodrom (3 commits)")

---

Tags

personal namesnombres propiosspanish namesnombres españolesonomásticarodrom

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/rodrom-onomastica/health.svg)

```
[![Health](https://phpackages.com/badges/rodrom-onomastica/health.svg)](https://phpackages.com/packages/rodrom-onomastica)
```

###  Alternatives

[wapmorgan/morphos

A morphological solution for Russian and English language written completely in PHP. Provides classes to inflect personal names, geographical names, decline and pluralize nouns, generate cardinal and ordinal numerals, spell out money amounts and time.

8351.3M7](/packages/wapmorgan-morphos)

PHPackages © 2026

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