PHPackages                             tinyporo/trie-suggester - 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. tinyporo/trie-suggester

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

tinyporo/trie-suggester
=======================

Example with Trie

04PHP

Since Jul 12Pushed 7y agoCompare

[ Source](https://github.com/TinyPoro/TrieSuggester)[ Packagist](https://packagist.org/packages/tinyporo/trie-suggester)[ RSS](/packages/tinyporo-trie-suggester/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Poro\\TrieSuggester
===================

[](#porotriesuggester)

Project thực hành trie

Usage
-----

[](#usage)

- Khởi tạo đối tượng

```
$trie = new \Poro\TrieSuggester\TrieSuggester();

```

- load danh sách các từ vào cây Trie

```
$trie->loadDict($word_array);

```

- Lấy ra danh sách các từ gợi ý từ dữ liệu nhập vào. (Lấy ra các từ bắt đầu với từ được nhập vào, không phân biệt hoa thường của input)

```
$trie->suggest($string);
$trie->alternateSuggest($string);

```

Note
----

[](#note)

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity40

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/f95c3d5b7647817cfac08d2eb6ca95cb81807e6d17c954b8dca48425d0c47d42?d=identicon)[TinyPoro](/maintainers/TinyPoro)

---

Top Contributors

[![TinyPoro](https://avatars.githubusercontent.com/u/20787476?v=4)](https://github.com/TinyPoro "TinyPoro (2 commits)")

### Embed Badge

![Health badge](/badges/tinyporo-trie-suggester/health.svg)

```
[![Health](https://phpackages.com/badges/tinyporo-trie-suggester/health.svg)](https://phpackages.com/packages/tinyporo-trie-suggester)
```

PHPackages © 2026

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