PHPackages                             magentron/metaphone-spanish - 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. magentron/metaphone-spanish

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

magentron/metaphone-spanish
===========================

PHP implementation of the Spanish metaphone algorithm

1.0.1(7y ago)31634GPL-3.0-or-laterPHP

Since Dec 10Pushed 5y ago1 watchersCompare

[ Source](https://github.com/Magentron/Metaphone-Spanish-PHP)[ Packagist](https://packagist.org/packages/magentron/metaphone-spanish)[ Docs](https://github.com/Magentron/Metaphone-Spanish-PHP)[ RSS](/packages/magentron-metaphone-spanish/feed)WikiDiscussions master Synced today

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

PHP implementation of the Spanish metaphone algorithm
=====================================================

[](#php-implementation-of-the-spanish-metaphone-algorithm)

Requirements
------------

[](#requirements)

Perhaps it works with lesser versions as well, but this is untested.

- PHP 5.3 or above

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

[](#installation)

Add package via composer:

```
composer require magentron/metaphone-spanish

```

Use:

```
use Magentron\MetaphoneSpanish\MetaphoneSpanish;

$mes = new MetaphoneSpanish();
$key = $mes->metaphone($phrase);

```

Command line
------------

[](#command-line)

```
vendor/bin/metaphone-es [  ] ...

```

LICENSE
-------

[](#license)

The Spanish Metaphone Algorithm (Algoritmo del Metáfono para el Español)

If you use it in academic papers you can cite this article:

@inproceedings{mosquera2012towards, title={Towards Facilitating the Accessibility of Web 2.0 Texts through Text Normalisation}, author={Mosquera, Alejandro and Lloret, Elena and Moreda, Paloma}, booktitle={Proceedings of the LREC workshop: Natural Language Processing for Improving Textual Accessibility (NLP4ITA) ; Istanbul, Turkey.}, pages={9--14}, year={2012}}

This script implements the Metaphone algorithm (c) 1990 by Lawrence Philips. It was inspired by the English double metaphone algorithm implementation by Andrew Collins - January 12, 2007 who claims no rights to this work ()

This metaphone port adapted to the Spanish Language is authored by Alejandro Mosquera  November, 2011 () and is covered under this copyright:

Copyright 2011, Alejandro Mosquera . All rights reserved.

This metaphone port adapted to the Spanish Language for PHP is authored by Jeroen Derks  December, 2018 () and is covered under this copyright:

Copyright 2018, Jeroen Derks . All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

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

2710d ago

Major Versions

0.9.0 → 1.0.02018-12-10

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/853900?v=4)[Jeroen D.](/maintainers/Magentron)[@Magentron](https://github.com/Magentron)

---

Top Contributors

[![amsqr](https://avatars.githubusercontent.com/u/1260642?v=4)](https://github.com/amsqr "amsqr (6 commits)")[![Magentron](https://avatars.githubusercontent.com/u/853900?v=4)](https://github.com/Magentron "Magentron (5 commits)")

---

Tags

phpspanishmetaphone

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/magentron-metaphone-spanish/health.svg)

```
[![Health](https://phpackages.com/badges/magentron-metaphone-spanish/health.svg)](https://phpackages.com/packages/magentron-metaphone-spanish)
```

###  Alternatives

[imanghafoori/laravel-anypass

A minimal yet powerful package to help you in development.

21421.6k](/packages/imanghafoori-laravel-anypass)

PHPackages © 2026

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