PHPackages                             nin/mysql-ft-search - 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. nin/mysql-ft-search

ActiveLibrary

nin/mysql-ft-search
===================

v1.2(4y ago)16MITPHP

Since Oct 3Pushed 4y ago1 watchersCompare

[ Source](https://github.com/ninhnguyen22/mysql-ft-search)[ Packagist](https://packagist.org/packages/nin/mysql-ft-search)[ RSS](/packages/nin-mysql-ft-search/feed)WikiDiscussions master Synced 1mo ago

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

### Laravel MySQL Fulltext search engine for the laravel scout

[](#laravel-mysql-fulltext-search-engine-for-the-laravel-scout)

Usage:
------

[](#usage)

### Required

[](#required)

MySql store engine:

- MyISAM
- InnoDB: version ^5.5

To be able to search with 2 characters, configure Minimum Word Length:

- MyISAM:

    ```
    ft_min_word_len = 2
    ```
- InnoDB:

    ```
    innodb_ft_min_token_size = 2
    ```

​

### Laravel Scout:

[](#laravel-scout)

First, You need install [Laravel Scout](https://laravel.com/docs/8.x/scout) package.

### Install:

[](#install)

Composer:

```
$ composer require nin/mysql-ft-search
```

If you don't use auto-discovery, add the ServiceProvider to the providers array in config/app.php

```
Nin\MySqlFtSearc\ServiceProvider::class,
```

Publish config:

```
$ php artisan vendor:publish --provider="Nin\MySqlFtSearc\ServiceProvider"
```

Laravel scout driver configuration:

```
SCOUT_DRIVER=mysql  # Refer to config('mysql-ft-search.scout_driver_name')

```

### Schema:

[](#schema)

Make FullText column.

```
use Illuminate\Database\Migrations\Migration;
use Nin\MySqlFtSearch\Facade as FtSchema;

class CreatePostsTable extends Migration
{
    public function up()
    {
        FtSchema::create('posts', function (Blueprint $table) {
            $table->id();
            $table->string('title');

            $table->fulltext(['title']);
        });
    }
}
```

### Configuring Model:

[](#configuring-model)

The columns of the full text index.

```
use Illuminate\Database\Eloquent\Model;
use Laravel\Scout\Searchable;

class Post extends Model
{
    use Searchable;

    /**
     * The columns of the full text index
     */
    public $searchable = [
        'title',
    ];
}
```

### Searching:

[](#searching)

```
use App\Models\Post;

$rs = Post::search('Foo')->get();
```

License
-------

[](#license)

[MIT license](LICENSE.md)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

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.

###  Release Activity

Cadence

Every ~7 days

Total

3

Last Release

1674d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8ac52808b226765af9f8a01575d42942077569051239e23fb3b7bbe49f9176e5?d=identicon)[ninhnguyen22](/maintainers/ninhnguyen22)

---

Top Contributors

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

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/nin-mysql-ft-search/health.svg)

```
[![Health](https://phpackages.com/badges/nin-mysql-ft-search/health.svg)](https://phpackages.com/packages/nin-mysql-ft-search)
```

###  Alternatives

[owen-it/laravel-auditing

Audit changes of your Eloquent models in Laravel

3.4k33.0M95](/packages/owen-it-laravel-auditing)[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)[casbin/laravel-authz

An authorization library that supports access control models like ACL, RBAC, ABAC in Laravel.

324339.9k4](/packages/casbin-laravel-authz)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

44643.1k1](/packages/pressbooks-pressbooks)[illuminatech/balance

Provides support for Balance accounting system based on debit and credit principle

16137.4k](/packages/illuminatech-balance)[rapidez/core

Rapidez Core

1820.7k53](/packages/rapidez-core)

PHPackages © 2026

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