PHPackages                             dbtk/schema-loader - 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. dbtk/schema-loader

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

dbtk/schema-loader
==================

Load Database schema from XML

v2.7.1(6y ago)54.3k3[2 issues](https://github.com/dbtk/schema-loader/issues)6MITPHPCI failing

Since Jun 29Pushed 6y ago4 watchersCompare

[ Source](https://github.com/dbtk/schema-loader)[ Packagist](https://packagist.org/packages/dbtk/schema-loader)[ RSS](/packages/dbtk-schema-loader/feed)WikiDiscussions master Synced yesterday

READMEChangelog (10)Dependencies (5)Versions (23)Used By (6)

schema-loader
=============

[](#schema-loader)

Load database schema from an XML file.

Usage
-----

[](#usage)

You can load schema to database by:

### Database url

[](#database-url)

A full URL containing username, password, hostname and dbname:

```
./bin/dbtk-schema-loader schema:load example/schema.xml mysql://username:password@localhost/dbname

```

### Just a dbname

[](#just-a-dbname)

In this case [linkorb/database-manager](https://github.com/linkorb/database-manager) is used for loading database connection details (server, username, password, etc) from .conf files (read project readme for more details).

In a nutshell - you must have a `dbname.conf` file at `/share/config/database/` as described at [database-manager's documentation](https://github.com/linkorb/database-manager#database-configuration-files).

```
./bin/dbtk-schema-loader schema:load example/schema.xml dbname
```

### Examples

[](#examples)

See `example/schema.xml` or `/tests/fixtures/schema.xml`.

### Notices

[](#notices)

- Don't forget to use `notnull="false"` for optional fields.
- Don't use `primaryKey="id"` in table definition - in version `~2.0` indexes have new format.

License
-------

[](#license)

Please refer to the included LICENSE file

Brought to you by the LinkORB Engineering team
----------------------------------------------

[](#brought-to-you-by-the-linkorb-engineering-team)

[![](https://camo.githubusercontent.com/62fb66b034de7ea7fca9fd9776424b5348daa76ef8622caf92c2f7622003e5ef/687474703a2f2f7777772e6c696e6b6f72622e636f6d2f642f6d6574612f74696572312f696d616765732f6c696e6b6f7262656e67696e656572696e672d6c6f676f2e706e67)](https://camo.githubusercontent.com/62fb66b034de7ea7fca9fd9776424b5348daa76ef8622caf92c2f7622003e5ef/687474703a2f2f7777772e6c696e6b6f72622e636f6d2f642f6d6574612f74696572312f696d616765732f6c696e6b6f7262656e67696e656572696e672d6c6f676f2e706e67)
Check out our other projects at [engineering.linkorb.com](http://engineering.linkorb.com).

Btw, we're hiring!

###  Health Score

36

—

LowBetter than 79% of packages

Maintenance12

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community23

Small or concentrated contributor base

Maturity73

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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 ~80 days

Recently: every ~180 days

Total

22

Last Release

2326d ago

Major Versions

v1.1.2 → v2.0.02015-08-16

### Community

Maintainers

![](https://www.gravatar.com/avatar/1db66b320db18b8036ea68211b7d8a39e7c6da97e6fd29f59a50380ebb69d0bb?d=identicon)[joostfaassen](/maintainers/joostfaassen)

---

Top Contributors

[![joostfaassen](https://avatars.githubusercontent.com/u/411113?v=4)](https://github.com/joostfaassen "joostfaassen (24 commits)")[![igormukhingmailcom](https://avatars.githubusercontent.com/u/6544038?v=4)](https://github.com/igormukhingmailcom "igormukhingmailcom (10 commits)")[![h-wang](https://avatars.githubusercontent.com/u/3410322?v=4)](https://github.com/h-wang "h-wang (7 commits)")[![congpeijun](https://avatars.githubusercontent.com/u/881552?v=4)](https://github.com/congpeijun "congpeijun (5 commits)")[![prajapati-kaushik](https://avatars.githubusercontent.com/u/10140681?v=4)](https://github.com/prajapati-kaushik "prajapati-kaushik (2 commits)")

---

Tags

schemaxmldatabaseloaderlinkorb

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dbtk-schema-loader/health.svg)

```
[![Health](https://phpackages.com/badges/dbtk-schema-loader/health.svg)](https://phpackages.com/packages/dbtk-schema-loader)
```

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k300.5M7.5k](/packages/doctrine-orm)[flow-php/flow

PHP ETL - Extract Transform Load - Data processing framework

85036.3k](/packages/flow-php-flow)[shopware/storefront

Storefront for Shopware

684.6M236](/packages/shopware-storefront)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

585.6M573](/packages/shopware-core)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9421.6k61](/packages/open-dxp-opendxp)[bartlett/php-compatinfo-db

Reference Database of all functions, constants, classes, interfaces on PHP standard distribution and about 110 extensions

1185.6k2](/packages/bartlett-php-compatinfo-db)

PHPackages © 2026

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