PHPackages                             pho-adapters/index-mysql - 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. pho-adapters/index-mysql

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

pho-adapters/index-mysql
========================

MySQL adapter for indexing data from nodes and edges of graphs for the Phở stack.

07[3 issues](https://github.com/pho-adapters/index-mysql/issues)PHP

Since Sep 13Pushed 8y ago1 watchersCompare

[ Source](https://github.com/pho-adapters/index-mysql)[ Packagist](https://packagist.org/packages/pho-adapters/index-mysql)[ RSS](/packages/pho-adapters-index-mysql/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependenciesVersions (1)Used By (0)

Overall
=======

[](#overall)

Pho adapter for Index service based on MySQL database. Its store all attributes values from nodes and edges to table. Last updated code you can found [here](https://github.com/pho-adapters/index-mysql/).

### Install

[](#install)

This apapter already inclided in [pho-microcernel](https://github.com/phonetworks/pho-microkernel). We rccommend composer to install it:

```
composer require pho-adapters/index-mysql

```

Setup
=====

[](#setup)

Setup database
--------------

[](#setup-database)

Database must include table with this structure:

```
CREATE TABLE IF NOT EXISTS `kernel_index` (
    `uuid` VARCHAR(32) NOT NULL,
    `class` VARCHAR(255) NOT NULL,
    `key` VARCHAR(255) NOT NULL,
    `value` TEXT NOT NULL,
    INDEX (`uuid`, `class`)
) ENGINE=INNODB.

```

If you do not have that one

Configuration
=============

[](#configuration)

Service use default values:

NameValueHostlocalhostPort3306UserrootPassword(empty)DatabasephoindexTablekernel\_indexYou can change this parameters in two way:

##### A) In config:

[](#a-in-config)

`mysql://username:password@host:port/?database=(you_database)&table=(table)`where you change it with own connection data.

##### B) .env file:

[](#b-env-file)

NameValueHost:INDEX\_HOSTPort:INDEX\_PORTUser:INDEX\_USERPassword:INDEX\_PWDDatabase:INDEX\_DBTable:INDEX\_TABLEDatabase and table name allowed symbols are `[A-Za-z0-9_$]`

License
=======

[](#license)

MIT Created for photetworks.net Author: Andrii Cherytsya

###  Health Score

20

—

LowBetter than 13% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 90.9% 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/a3b6d80630289b910b490ff8998d30fd7a83e346ee6568e91c5df5eaae64d294?d=identicon)[esokullu](/maintainers/esokullu)

---

Top Contributors

[![poratuk](https://avatars.githubusercontent.com/u/12087528?v=4)](https://github.com/poratuk "poratuk (20 commits)")[![groupsinc](https://avatars.githubusercontent.com/u/290835175?v=4)](https://github.com/groupsinc "groupsinc (2 commits)")

### Embed Badge

![Health badge](/badges/pho-adapters-index-mysql/health.svg)

```
[![Health](https://phpackages.com/badges/pho-adapters-index-mysql/health.svg)](https://phpackages.com/packages/pho-adapters-index-mysql)
```

###  Alternatives

[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k116.5M113](/packages/jdorn-sql-formatter)[propel/propel1

Propel is an open-source Object-Relational Mapping (ORM) for PHP5.

8351.6M87](/packages/propel-propel1)[pgvector/pgvector

pgvector support for PHP

198628.3k10](/packages/pgvector-pgvector)

PHPackages © 2026

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