PHPackages                             luozhenyu/laravel-postgresql-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. [Database &amp; ORM](/categories/database)
4. /
5. luozhenyu/laravel-postgresql-fulltext

ActiveLibrary[Database &amp; ORM](/categories/database)

luozhenyu/laravel-postgresql-fulltext
=====================================

Add fulltext and inherited table support to postgresql

v1.1.0(7y ago)63591MITPHPPHP &gt;=7.0.0

Since Jul 15Pushed 7y ago1 watchersCompare

[ Source](https://github.com/luozhenyu/laravel-postgresql-fulltext)[ Packagist](https://packagist.org/packages/luozhenyu/laravel-postgresql-fulltext)[ RSS](/packages/luozhenyu-laravel-postgresql-fulltext/feed)WikiDiscussions master Synced 3d ago

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

laravel-postgresql-fulltext
===========================

[](#laravel-postgresql-fulltext)

[![Software License](https://camo.githubusercontent.com/f251623e510f5909f16ae3f4e6e548dac11340b9fde1a99be26b015b39272c00/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c6174)](LICENSE.md)

Add fulltext and inherited table support to postgresql

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

[](#installation)

[PHP](https://php.net) **5.6.4+** and [Laravel](https://laravel.com) **5.4+** are required.

Next step, you must install [amutu/zhparser](https://github.com/amutu/zhparser), and make sure it should work.

Finally, run the following command to install this package via composer

```
composer require "luozhenyu/laravel-postgresql-fulltext"
```

After install finished, run the following command to generate config file.

```
php artisan vendor:publish --provider="LuoZhenyu\PostgresFullText\PostgresqlSchemaServiceProvider"
```

If you are using laravel 5.4, then you need to register the service provider. Open `config/app.php` and add the following to the `providers` array.

```
LuoZhenyu\PostgresFullText\PostgresqlSchemaServiceProvider::class
```

Usage
-----

[](#usage)

When using a postgresql database, you can use the method `inherits()`:

```
Schema::create('users', function(Blueprint $table) {
  $table->increments('id');
  $table->string('name');
  $table->integer('age');
});

Schema::create('admins', function(Blueprint $table) {
    $table->string('permission');

    $table->inherits('users');//table admins inherit table users
});
```

Also you can use the method `fulltext()` and `dropFulltext()`.

```
Schema::create('articles', function(Blueprint $table) {
  $table->increments('id');
  $table->string('title');
  $table->text('content');

  $table->fulltext(['title', 'content']);

  $table->dropFulltext('articles_title_content_fulltext');
});
```

And a simple query method is also given in Eloquent ORM using fulltext index.

```
use LuoZhenyu\PostgresFullText\FulltextBuilder;

...

$fulltext = new FulltextBuilder(['title', 'content']);

$articles = Article::where($fulltext->search('any keyword'))->get();
```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity62

Established project with proven stability

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

Recently: every ~63 days

Total

6

Last Release

2769d ago

PHP version history (2 changes)1.0.0PHP &gt;=5.6.4

v1.0.4PHP &gt;=7.0.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/16633830?v=4)[罗震宇](/maintainers/luozhenyu)[@luozhenyu](https://github.com/luozhenyu)

---

Top Contributors

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

---

Tags

laraveldatabasepostgresqlfulltextinherit

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/luozhenyu-laravel-postgresql-fulltext/health.svg)

```
[![Health](https://phpackages.com/badges/luozhenyu-laravel-postgresql-fulltext/health.svg)](https://phpackages.com/packages/luozhenyu-laravel-postgresql-fulltext)
```

###  Alternatives

[mongodb/laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel

7.1k8.4M94](/packages/mongodb-laravel-mongodb)[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[yajra/laravel-oci8

Oracle DB driver for Laravel via OCI8

8793.2M25](/packages/yajra-laravel-oci8)[glushkovds/phpclickhouse-laravel

Adapter of the most popular library https://github.com/smi2/phpClickHouse to Laravel

2051.5M2](/packages/glushkovds-phpclickhouse-laravel)[aimeos/laravel-nestedset

Nested Set Model for Laravel

3714.4k6](/packages/aimeos-laravel-nestedset)[itpathsolutions/dbstan

Database Standardization and Analysis Tool for Laravel

442.1k](/packages/itpathsolutions-dbstan)

PHPackages © 2026

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