PHPackages                             metamodels/attribute\_levenshtein - 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. [Search &amp; Filtering](/categories/search)
4. /
5. metamodels/attribute\_levenshtein

ActiveContao-bundle[Search &amp; Filtering](/categories/search)

metamodels/attribute\_levenshtein
=================================

MetaModels attribute for maintaining a search index with levenshtein support

2.3.0(1y ago)01.8k↓50%1[3 issues](https://github.com/MetaModels/attribute_levenshtein/issues)1LGPL-3.0-or-laterPHPPHP ^8.1CI passing

Since Jul 6Pushed 1y ago9 watchersCompare

[ Source](https://github.com/MetaModels/attribute_levenshtein)[ Packagist](https://packagist.org/packages/metamodels/attribute_levenshtein)[ Docs](https://now.metamodel.me/)[ RSS](/packages/metamodels-attribute-levenshtein/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (9)Versions (15)Used By (1)

[![Build Status](https://github.com/MetaModels/attribute_levenshtein/actions/workflows/diagnostics.yml/badge.svg)](https://github.com/MetaModels/attribute_levenshtein/actions)[![Latest Version tagged](https://camo.githubusercontent.com/ae6a353e9488827c047dcdbc9143fb70e7c9601c334a075a5c0328007469893f/687474703a2f2f696d672e736869656c64732e696f2f6769746875622f7461672f4d6574614d6f64656c732f6174747269627574655f6c6576656e73687465696e2e737667)](https://github.com/MetaModels/attribute_levenshtein/tags)[![Latest Version on Packagist](https://camo.githubusercontent.com/1688710e7ab296a644eaebb5c250fc262284feaa6b3acab2f897220e78128086/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f4d6574614d6f64656c732f6174747269627574655f6c6576656e73687465696e2e737667)](https://packagist.org/packages/MetaModels/attribute_levenshtein)[![Installations via composer per month](https://camo.githubusercontent.com/f7df2e80d6b82ac0fbc90925cc833320e4b780506240c81fea56e6b4693c40fd/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f4d6574614d6f64656c732f6174747269627574655f6c6576656e73687465696e2e737667)](https://packagist.org/packages/MetaModels/attribute_levenshtein)

Levenshtein-based search
========================

[](#levenshtein-based-search)

The levenshtein attribute maintains an index of keywords across other attributes which can be searched using the levenshtein algorithm.

There is a filter rule that enables a similarity search via the created index. Optionally, an auto-completion ("Vanilla Script") can be activated (please note the template selection).

Adjustment of the index table
-----------------------------

[](#adjustment-of-the-index-table)

The fields for storing the index can be enlarged as required e.g. from a length of `64` to `256`. To do this, create a corresponding DCA file and adjust the values. (Note: the keys and the file name still have the old, wrong notation with "sth").

```
// contao/dca/tl_metamodel_levensthein_index.php
$GLOBALS['TL_DCA']['tl_metamodel_levensthein_index']['fields']['transliterated']['sql'] =
    'varbinary(256) NOT NULL default \'\'';
$GLOBALS['TL_DCA']['tl_metamodel_levensthein_index']['fields']['word']['sql']           =
    'varchar(256) BINARY NOT NULL default \'\'';
```

###  Health Score

44

—

FairBetter than 92% of packages

Maintenance45

Moderate activity, may be stable

Popularity20

Limited adoption so far

Community23

Small or concentrated contributor base

Maturity79

Established project with proven stability

 Bus Factor2

2 contributors hold 50%+ of commits

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

Recently: every ~214 days

Total

11

Last Release

422d ago

PHP version history (4 changes)2.0.0PHP ^5.6 || ^7.0

2.1.0PHP ^7.1

2.2.0PHP ^7.4

2.3.0PHP ^8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/44649522?v=4)[xtra](/maintainers/xtra)[@xtra](https://github.com/xtra)

![](https://avatars.githubusercontent.com/u/10211934?v=4)[Chibineko](/maintainers/Chibineko)[@chibineko](https://github.com/chibineko)

![](https://avatars.githubusercontent.com/u/5380530?v=4)[zonky](/maintainers/zonky)[@zonky](https://github.com/zonky)

---

Top Contributors

[![zonky2](https://avatars.githubusercontent.com/u/1045318?v=4)](https://github.com/zonky2 "zonky2 (69 commits)")[![discordier](https://avatars.githubusercontent.com/u/940331?v=4)](https://github.com/discordier "discordier (50 commits)")[![MiniModel](https://avatars.githubusercontent.com/u/4333204?v=4)](https://github.com/MiniModel "MiniModel (25 commits)")[![richardhj](https://avatars.githubusercontent.com/u/1284725?v=4)](https://github.com/richardhj "richardhj (23 commits)")[![e-spin](https://avatars.githubusercontent.com/u/6942009?v=4)](https://github.com/e-spin "e-spin (20 commits)")[![baumannsven](https://avatars.githubusercontent.com/u/2493263?v=4)](https://github.com/baumannsven "baumannsven (19 commits)")[![stefanheimes](https://avatars.githubusercontent.com/u/988286?v=4)](https://github.com/stefanheimes "stefanheimes (10 commits)")[![Ainschy](https://avatars.githubusercontent.com/u/1788135?v=4)](https://github.com/Ainschy "Ainschy (5 commits)")[![dmolineus](https://avatars.githubusercontent.com/u/1186266?v=4)](https://github.com/dmolineus "dmolineus (1 commits)")

---

Tags

filtercontaometamodelsattributelevenshtein

### Embed Badge

![Health badge](/badges/metamodels-attribute-levenshtein/health.svg)

```
[![Health](https://phpackages.com/badges/metamodels-attribute-levenshtein/health.svg)](https://phpackages.com/packages/metamodels-attribute-levenshtein)
```

PHPackages © 2026

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