PHPackages                             micros/splitname - 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. micros/splitname

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

micros/splitname
================

library for Laravel 10 and up, allows you to split Spanish names into four main parts

v1.0.14(3y ago)0176↓50%MITPHP

Since Mar 16Pushed 3y ago1 watchersCompare

[ Source](https://github.com/micros/splitname)[ Packagist](https://packagist.org/packages/micros/splitname)[ RSS](/packages/micros-splitname/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (16)Used By (0)

DESCRIPTION
===========

[](#description)

This library for Laravel 10 and up, allows you to split Spanish names into four main parts:

- First name
- Middle name
- Surname
- Other surnames

In addition, this library tries to identify the gender (female or male)

This library uses its internal term dictionary and its own rules definition. It is capable to learn new terms by its use, which means the more is used the more accurate is the library.

The system cannot learn new rules (only new terms) but this is a feature under development.

Note that if the library is used in many projects, with independent installations, you will get no benefits from the learning capabilities since are different databases. You should sync manually the newly learned terms between databases.

Is advisable to run the system many times against the database to will be clasified in order to let the system to learn new terms which improve the precision.

The system can handle unknow names and surnames but has no being tested with non-Spanish names.

Please use under your own risk and read carefully the licence.

DESCRIPCIÓN
===========

[](#descripción)

Esta librería para Laravel 10 y superior, le permite dividir nombres en español en sus cuatro componentes fundamentales:

- Primer nombre
- Otros nombres
- Primer apellido
- Otros apellidos

Adicionalmente la librería intenta detectar el género correspondiente al nombre (femenino o masculino).

La librería usa un diccionario propio de nombre y de reglas y está en capacidad de aprender nuevos términos con el uso, esto quiere decir que entre más se utilice el sistema tendrá mayor precisión.

En la actualidad el sistema no esta en capacidad de aprender nuevas reglas (solo nuevos términos) pero es una funcionalidad que se encuentra en desarrollo.

Tenga en cuenta que si utiliza esta librería en varios proyectos, con instalaciones independientes, no se beneficiará del aprendizaje automático pues las bases de datos serán diferentes. Ud puede exportar los nuevos nombres aprendidos entre las diferentes bases de datos de forma manual pero esto aún no está automatizado.

Se sugiere que ejecute el sistema varias veces sobre la misma colección de nombres para que pueda aprender nuevos nombres que le servirán para mejorar la precisión de la clasificación.

El sistema puede trabajar con nombres y apellidos desconocidos pero no ha sido probado con nombres extranjeros.

Por favor úselo bajo su propia responsabilidad. El licenciamiento le permite usarlo en cualquier proyecto pero siempre debe dar crédito al autor.

INSTALLATION / INSTALACIÓN
==========================

[](#installation--instalación)

```
composer require micros/splitname

php artisan migrate

```

HOW TO USE / COMO USAR
======================

[](#how-to-use--como-usar)

```
use Micros\Splitname\SplitName;

$splitter = new SplitName();

$tests = [
    'Leonardo Forero Sandoval',
    'Díaz Duran, Adriana',
    'José Francisco de San Martín y Matorras.',
    'Manuel José Joaquín del Corazón de Jesús Belgrano.',
    'Cornelio Judas Tadeo de Saavedra y Rodríguez.',
    'Bernardino de la Trinidad González de Rivadavia y Rodríguez de Rivadavia.',
    'Francisco José de Paula Santander Omaña',
    'Simón José Antonio de la Santísima Trinidad Bolívar Ponte y Palacios Blanco',
    'delcy gomez viuda de rodriguez',
    'Carmen Herrera García Vda. de López',
];

foreach ($tests as $test) {
    $parts = $splitter->split($test)['classified'];
    dump($parts);
}

$splitter->process();

```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity53

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 ~1 days

Total

15

Last Release

1142d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/10ec8f9737021a6f0ab3b97a2b2e7e05dbf6e237dec0f8b98aa9e987e1881e89?d=identicon)[micros](/maintainers/micros)

---

Top Contributors

[![micros](https://avatars.githubusercontent.com/u/60292?v=4)](https://github.com/micros "micros (16 commits)")

### Embed Badge

![Health badge](/badges/micros-splitname/health.svg)

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

###  Alternatives

[illuminate/support

The Illuminate Support package.

582107.1M34.5k](/packages/illuminate-support)[voku/portable-utf8

Portable UTF-8 library - performance optimized (unicode) string functions for php.

52322.4M40](/packages/voku-portable-utf8)[aimeos/aimeos-base

Aimeos base layer for abstracting from host environments

2.1k134.0k1](/packages/aimeos-aimeos-base)[jbroadway/urlify

A fast PHP slug generator and transliteration library that converts non-ascii characters for use in URLs.

6737.4M62](/packages/jbroadway-urlify)[voku/stringy

A string manipulation library with multibyte support

1783.8M19](/packages/voku-stringy)[voku/urlify

PHP port of URLify.js from the Django project. Transliterates non-ascii characters for use in URLs.

254.1M7](/packages/voku-urlify)

PHPackages © 2026

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