PHPackages                             griddb/php-client - 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. griddb/php-client

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

griddb/php-client
=================

GridDB PHP Client Library will be generated by SWIG and GridDB C Client.

v0.0.3(5y ago)058Apache-2.0C++PHP ^7.4

Since Feb 10Pushed 5y ago1 watchersCompare

[ Source](https://github.com/thanhthanh-yen/griddb_php_client)[ Packagist](https://packagist.org/packages/griddb/php-client)[ RSS](/packages/griddb-php-client/feed)WikiDiscussions master Synced 5d ago

READMEChangelog (1)DependenciesVersions (4)Used By (0)

griddb/php-client
=================

[](#griddbphp-client)

This package allows you to automatically build [GridDB PHP Client](https://github.com/griddb/php_client) source code with [SWIG](http://www.swig.org/) (Simplified Wrapper and Interface Generator) when running a composer install or update.

Operating environment
---------------------

[](#operating-environment)

Building of the library and execution of the sample programs have been checked in the following environment

```
OS:              CentOS 7.8(x64)
SWIG:            4.0.0
GCC:             4.8.5
PHP:             7.4.7
GridDB C Client: 4.5 (CE)

```

Preparations
------------

[](#preparations)

Install PHP7.4.7

Install GridDB C Client by running the following as root:

```
cd /etc/yum.repos.d/
wget https://download.opensuse.org/repositories/home:knonomura/CentOS_7/home:knonomura.repo
yum install griddb-c-client

```

How to install and use griddb/php-client on Packagist.org with composer
=======================================================================

[](#how-to-install-and-use-griddbphp-client-on-packagistorg-with-composer)

### Installation

[](#installation)

In your root project, using this command to install GridDB PHP Client from Packagist.org:

```
composer require griddb/php-client

```

GridDB PHP Client source code will be located at **vendor/griddb/php-client** folder in your root project after griddb/php-client composer package has been installed successfully.

### Usage

[](#usage)

Add the following into composer.json file at root project:

```
{
    "require": {
        "griddb/php-client": "~0.0.3"
    },
    "scripts": {
        "post-install-cmd": [
            "cd vendor/griddb/php-client && make"
        ],
        "post-update-cmd": [
            "cd vendor/griddb/php-client && make"
        ]
    },
     "autoload": {
        "files": ["vendor/griddb/php-client/griddb_php_client.php"]
    }
}

```

Then run this command:

```
composer update

```

or

```
composer install

```

The **griddb\_php\_client.so** and **griddb\_php\_client.php** library files will then be created by composer script at **vendor/griddb/php-client** folder.

How to run sample with griddb/php-client composer package
=========================================================

[](#how-to-run-sample-with-griddbphp-client-composer-package)

[GridDB Server](https://github.com/griddb/griddb) need to be started in advance.

1. Write the following description in /etc/php.ini

```
extension=

```

With:

- &lt;PHP client library file directory path&gt; is \[...\]/vendor/griddb/php-client/griddb\_php\_client.so

2. In your root project, execute the command to run sample:

```
$ cp vendor/griddb/php-client/sample/sample1.php .
$ php sample1.php

      -->Person: name=name02 status=false count=2 lob=ABCDEFGHIJ

```

If you want to run your other sample, remember to add the following line in your sample to include griddb\_php\_client.php library:

```
require __DIR__ . '/vendor/autoload.php'

```

This make composer load automatically griddb\_php\_client.php library file from **vendor** folder.

Note:

- Your sample need be located in the same **vendor** folder directory

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

Total

3

Last Release

2069d ago

PHP version history (2 changes)v0.0.1PHP ^7

v0.0.3PHP ^7.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/7b80554b8deb9d4bfe565b93733b1ff533cb531a665cdfeea3fba86d4c3fba1c?d=identicon)[thanhthanh-yen](/maintainers/thanhthanh-yen)

---

Top Contributors

[![thanhthanh-yen](https://avatars.githubusercontent.com/u/57885830?v=4)](https://github.com/thanhthanh-yen "thanhthanh-yen (2 commits)")

### Embed Badge

![Health badge](/badges/griddb-php-client/health.svg)

```
[![Health](https://phpackages.com/badges/griddb-php-client/health.svg)](https://phpackages.com/packages/griddb-php-client)
```

###  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)
