PHPackages                             roaresearch/yii2-fulltext - 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. roaresearch/yii2-fulltext

ActiveLibrary

roaresearch/yii2-fulltext
=========================

Yii 2 Library to support full text index and search

011PHP

Since May 17Pushed 1y ago2 watchersCompare

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

READMEChangelogDependenciesVersions (2)Used By (0)

Yii2 FullText Support
=====================

[](#yii2-fulltext-support)

Library with migrations and queries to utilize the FullText search funcionality.

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

[](#installation)

You can use composer to install the library `roaresearch/yii2-fulltext` by running the command;

`composer require roaresearch/yii2-fulltext`

or edit the `composer.json` file

```
require: {
    "roareasearch/yii2-fulltext": "*",
}
```

Usage
-----

[](#usage)

### Create Migrations

[](#create-migrations)

The migration to create a full text index is meant to be executed after loading the DB data using Fixtures or other tools.

#### `roaresearch\yii2\fullText\AddFullTextMigration`

[](#roaresearchyii2fulltextaddfulltextmigration)

Create a new migration for each table to be modified. Remember that FullText significantly slows the storing of information so its meant to be used sparcely.

```
use roaresearch\yii2\fullText\AddFullTextMigration;

class m170101_000001_add_fulltext_article extends AddFullTextMigration
{
    public function getTableName()
    {
        return 'article';
    }

    public function fullTextIndexes()
    {
        return [
            'ft-index1' => 'column1',
            'ft-index2' => ['column1', 'column2'],
        ];
    }
}
```

#### Testing Environment

[](#testing-environment)

This library use [Composer Utils](https://github.com/ROAResearch/composer-utils)to quickly deploy the needed database and testing Environment.

```
git clone https://github.com/ROAResearch/yii2-fulltext.git
cd yii2-rmdb/
composer deploy
```

This will ask db credentials, validate them and create the needed database and structure.

###  Health Score

15

—

LowBetter than 3% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity2

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity20

Early-stage or recently created project

 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/2341d88f3cdea0c2474cfbf59e5cf6dab5dd6a026d7846fabf219f2a93be1641?d=identicon)[neverabe](/maintainers/neverabe)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/roaresearch-yii2-fulltext/health.svg)

```
[![Health](https://phpackages.com/badges/roaresearch-yii2-fulltext/health.svg)](https://phpackages.com/packages/roaresearch-yii2-fulltext)
```

PHPackages © 2026

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