PHPackages                             inlm/schema-generator-dibi - 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. inlm/schema-generator-dibi

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

inlm/schema-generator-dibi
==========================

Dibi bridge for inlm/schema-generator

v1.2.0(10mo ago)1608BSD-3-ClausePHPPHP 8.0 - 8.4CI passing

Since Jul 27Pushed 10mo ago1 watchersCompare

[ Source](https://github.com/inlm/schema-generator-dibi)[ Packagist](https://packagist.org/packages/inlm/schema-generator-dibi)[ Fund](https://www.janpecha.cz/donate/schema-generator/)[ RSS](/packages/inlm-schema-generator-dibi/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (3)Versions (5)Used By (0)

Schema Generator - Dibi Bridge
==============================

[](#schema-generator---dibi-bridge)

[![Build Status](https://github.com/inlm/schema-generator-dibi/workflows/Build/badge.svg)](https://github.com/inlm/schema-generator-dibi/actions)[![Downloads this Month](https://camo.githubusercontent.com/63ee0cdf390b0e6b3363fae344f10386fad4986c58b2bd35a1e2bc4ddfba496c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f696e6c6d2f736368656d612d67656e657261746f722d646962692e737667)](https://packagist.org/packages/inlm/schema-generator-dibi)[![Latest Stable Version](https://camo.githubusercontent.com/21ef7d0e8765b113ce0bcedac0826242381e722ef0209910d2009de5096277ed/68747470733a2f2f706f7365722e707567782e6f72672f696e6c6d2f736368656d612d67656e657261746f722d646962692f762f737461626c65)](https://github.com/inlm/schema-generator-dibi/releases)[![License](https://camo.githubusercontent.com/fa7d5fcf2c84b580327af52da95dd751703af65f079dc3c5a0081beac0789718/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4e65772532304253442d626c75652e737667)](https://github.com/inlm/schema-generator-dibi/blob/master/license.md)

[![Donate](https://camo.githubusercontent.com/101b981194f1dafbf9c42e19c3034fe2d724e75be972cef0f4477074997834db/68747470733a2f2f6275796d65636f666665652e696e746d2e6f72672f696d672f646f6e6174652d62616e6e65722e76312e737667)](https://www.janpecha.cz/donate/schema-generator/)

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

[](#installation)

[Download a latest package](https://github.com/inlm/schema-generator-dibi/releases) or use [Composer](http://getcomposer.org/):

```
composer require inlm/schema-generator-dibi

```

Schema Generator requires PHP 8.0 or later and [Dibi](https://dibiphp.com/) 3.0 or newer.

Documentation
-------------

[](#documentation)

Supported databases:

- MySQL

### DibiExtractor

[](#dibiextractor)

It generates schema from existing database.

```
$connection = new Dibi\Connection(...);
$ignoredTables = ['migrations'];
$extractor = new Inlm\SchemaGenerator\DibiBridge\DibiExtractor($connection, $ignoredTables);
```

### DibiAdapter

[](#dibiadapter)

It loads schema from existing database.

```
$connection = new Dibi\Connection(...);
$ignoredTables = ['migrations'];
$extractor = new Inlm\SchemaGenerator\DibiBridge\DibiAdapter($connection, $ignoredTables);
```

**Note:** saving of schema is not supported, use `DibiDumper`.

### DibiDumper

[](#dibidumper)

`DibiDumper` executes SQL queries directly in database.

```
$connection = new Dibi\Connection(...);
$dumper = new Inlm\SchemaGenerator\DibiBridge\DibiDumper($connection);
$dumper->setHeader(array(
	'SET foreign_key_checks = 1;',
));
```

If you need generate `... AFTER column` in `ALTER TABLE` statements, call:

```
$dumper->enablePositionChanges();
```

---

License: [New BSD License](license.md)
Author: Jan Pecha,

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance54

Moderate activity, may be stable

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

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

Total

4

Last Release

322d ago

PHP version history (2 changes)v1.0.0PHP &gt;=5.6.0

v1.1.0PHP 8.0 - 8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/5c980b1511b4a0350442dc23d89c99d4d9a2411b7e765d52c133ccacf616968b?d=identicon)[janpecha](/maintainers/janpecha)

---

Top Contributors

[![janpecha](https://avatars.githubusercontent.com/u/637719?v=4)](https://github.com/janpecha "janpecha (10 commits)")

### Embed Badge

![Health badge](/badges/inlm-schema-generator-dibi/health.svg)

```
[![Health](https://phpackages.com/badges/inlm-schema-generator-dibi/health.svg)](https://phpackages.com/packages/inlm-schema-generator-dibi)
```

###  Alternatives

[tharos/leanmapper

Tiny ORM based on powerful Dibi database abstraction library for PHP.

93150.7k29](/packages/tharos-leanmapper)

PHPackages © 2026

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