PHPackages                             dooaki/phroonga - 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. dooaki/phroonga

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

dooaki/phroonga
===============

Groonga for PHP

357[3 issues](https://github.com/do-aki/php-phroonga/issues)PHP

Since Sep 3Pushed 11y ago3 watchersCompare

[ Source](https://github.com/do-aki/php-phroonga)[ Packagist](https://packagist.org/packages/dooaki/phroonga)[ RSS](/packages/dooaki-phroonga/feed)WikiDiscussions master Synced 5d ago

READMEChangelogDependenciesVersions (1)Used By (0)

php-phroonga
============

[](#php-phroonga)

[![Build Status](https://camo.githubusercontent.com/32f34619eb1cc615ea58a3fd4fab4f595fd7e0722b0ee1a7785c33c97370dfc0/68747470733a2f2f7472617669732d63692e6f72672f646f2d616b692f7068702d7068726f6f6e67612e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/do-aki/php-phroonga)[![Coverage Status](https://camo.githubusercontent.com/de77cbc8cc192218c6a30f28e3ebd5b0642da186da65b945d877bcb2a4a1be7f/68747470733a2f2f696d672e736869656c64732e696f2f636f766572616c6c732f646f2d616b692f7068702d7068726f6f6e67612e737667)](https://coveralls.io/r/do-aki/php-phroonga?branch=master)

[Groonga](http://groonga.org/) client for php

namespace
---------

[](#namespace)

dooaki\\Phroonga

requirements
------------

[](#requirements)

php 5.5.0 or latter

installation
------------

[](#installation)

write composer.json and run *composer install*.

```
{
   "require": {
      "dooaki/phroonga": "dev-master"
   }
}
```

usage
-----

[](#usage)

GroongaEntity trait を use したクラスが entity として、 groonga の一つのテーブルを司ります。

table 定義は \_schema という static method で self::Table, self::Column 等を用いて行います。

```
use dooaki\Phroonga\Groonga;
use dooaki\Phroonga\GroongaEntity;

class User
{
    use GroongaEntity;

    public static function _schema()
    {
        self::Table(
            'Users',
            [
                'flags' => 'TABLE_HASH_KEY',
                'key_type' => 'ShortText'
            ]
        );
        self::Column('age', 'Int32');
    }
}

$grn = new Groonga('http://localhost:10043');
$grn->activate();   // associate GroongaEntity and Groonga

$grn->create();  // table_create and column_create

$u1 = new User();
$u1->_key = 'alice';
$u1->age  = 18;
$u1->save();    // load

$u2 = new User();
$u2->_key = 'bob';
$u2->age  = 20;
$u2->save();    // load

$alice = User::select()->find('alice'); // select
echo "{$alice->_key} is {$alice->age} years old.", PHP_EOL;
```

上記のコードは groonga のコンソールで以下のコマンドを実行することと同じです

```
> table_create --name User --flags TABLE_HASH_KEY --key_type ShortText
> column_create --table User --name age --type Int32
> load --table User
[{"_key":"alice","age":18},{"_key":"bob","age":20}]
> select --table User --query "_key:alice"

```

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 51.4% 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/aa3ab024c54c766f6f9fe7a532ee99b25bff3fe0dba4d0bfaec41b815408c592?d=identicon)[do-aki](/maintainers/do-aki)

---

Top Contributors

[![do-aki](https://avatars.githubusercontent.com/u/302784?v=4)](https://github.com/do-aki "do-aki (18 commits)")[![do-moshimo](https://avatars.githubusercontent.com/u/182839080?v=4)](https://github.com/do-moshimo "do-moshimo (17 commits)")

### Embed Badge

![Health badge](/badges/dooaki-phroonga/health.svg)

```
[![Health](https://phpackages.com/badges/dooaki-phroonga/health.svg)](https://phpackages.com/packages/dooaki-phroonga)
```

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M546](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

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