PHPackages                             singrana/yii2-suffixtree-behavior - 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. singrana/yii2-suffixtree-behavior

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

singrana/yii2-suffixtree-behavior
=================================

Behavior for use suffix tree

0283PHP

Since May 13Pushed 12y ago2 watchersCompare

[ Source](https://github.com/Singrana/yii2-suffixtree-behavior)[ Packagist](https://packagist.org/packages/singrana/yii2-suffixtree-behavior)[ RSS](/packages/singrana-yii2-suffixtree-behavior/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Suffix tree behavior
====================

[](#suffix-tree-behavior)

Behavior for use suffix tree. This behavior attached to your model for usage hierarchical structure.

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist singrana/yii2-suffixtree-behavior "*"

```

or add

```
"singrana/yii2-suffixtree-behavior": "*"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your code by :

Add in your model behaviors method:

```
public function behaviors()
{
	return
	[
		...

		'suffixTree'		=>
		[
			'class'			=>	'singrana\behaviors\SuffixBehavior',
		],
		...
	];
}
```

You can configure behavior:

- `fieldKey` - attribute for storage suffix key;
- `fieldTranslit` - attribute for storage translit, null if not need;
- `fieldUrl` - attribute for storage Url, null if not need;
- `fieldParent` - attribute for storage parent field, null if not need different trees storage;
- `fieldParentId` - attribute for parent node Id;
- `fieldLevel` - attribute for storage level node, null if not need;

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

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://avatars.githubusercontent.com/u/4208498?v=4)[Singrana](/maintainers/Singrana)[@Singrana](https://github.com/Singrana)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/singrana-yii2-suffixtree-behavior/health.svg)

```
[![Health](https://phpackages.com/badges/singrana-yii2-suffixtree-behavior/health.svg)](https://phpackages.com/packages/singrana-yii2-suffixtree-behavior)
```

###  Alternatives

[fishpig/magento2-wordpress-integration

Securely integrate WordPress and Magento 2.

83369.2k7](/packages/fishpig-magento2-wordpress-integration)

PHPackages © 2026

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