PHPackages                             phphackes/zend-tablegateway-factory - 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. phphackes/zend-tablegateway-factory

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

phphackes/zend-tablegateway-factory
===================================

Creates TableGateways according to schema and table name provided.

v1.0.0(8y ago)15871MITPHP

Since Jun 26Pushed 8y ago1 watchersCompare

[ Source](https://github.com/phphacks/zend-tablegateway-factory)[ Packagist](https://packagist.org/packages/phphackes/zend-tablegateway-factory)[ RSS](/packages/phphackes-zend-tablegateway-factory/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (1)

[![](https://camo.githubusercontent.com/db78812ea1cdaec7726b824d08442aa66ef2e36cf391a27fa9901c516d90bb8c/68747470733a2f2f692e696d6775722e636f6d2f727936704e4c442e706e67)](https://camo.githubusercontent.com/db78812ea1cdaec7726b824d08442aa66ef2e36cf391a27fa9901c516d90bb8c/68747470733a2f2f692e696d6775722e636f6d2f727936704e4c442e706e67)
=============================================================================================================================================================================================================================================================================================================================================

[](#)

[![Maintainability](https://camo.githubusercontent.com/2666fe87be1944d597244a2032d30464057f1ed4bf367d42c2c1724fdee1f756/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f30393731393432653937633963386330666563332f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/phphacks/zend-tablegateway-factory/maintainability) [![Latest Stable Version](https://camo.githubusercontent.com/ab0989470990a08e1fd352f8c285f123383c4c31572c8bd489d2c5fe57abbb55/68747470733a2f2f706f7365722e707567782e6f72672f7068706861636b65732f7a656e642d7461626c65676174657761792d666163746f72792f762f737461626c65)](https://packagist.org/packages/phphackes/zend-tablegateway-factory) [![Latest Unstable Version](https://camo.githubusercontent.com/f0d9c945fb371facb00b8b9a6049bde45a6b4e05e07686c32751253fddb33340/68747470733a2f2f706f7365722e707567782e6f72672f7068706861636b65732f7a656e642d7461626c65676174657761792d666163746f72792f762f756e737461626c65)](https://packagist.org/packages/phphackes/zend-tablegateway-factory)

### Setup the factory

[](#setup-the-factory)

All the factory requires is a database adapter.

```
$adapter = $serviceLocator->get('Zend/Db/Adapter/Adapter');
$factory = new TableGatewayFactory($adapter);
```

### Getting a TableGateway

[](#getting-a-tablegateway)

Since you have provided the adapter now you can directly create the TableGateway using just the table name or also a schema name.

```
$users = $factory->create('users');
$users = $factory->create('users', 'myAuthSchema');
```

### Running the commands

[](#running-the-commands)

Now the [TableGateway](https://framework.zend.com/manual/2.2/en/modules/zend.db.table-gateway.html) is created, you can use it like it have always been.

```
$rows = $users->select([
   'username' => 'admin',
   'password' => 'nimda'
])->toArray();
```

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity63

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

Unknown

Total

1

Last Release

2926d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/36308948?v=4)[hexdec(uname)](/maintainers/0x3175633435)[@0x3175633435](https://github.com/0x3175633435)

---

Top Contributors

[![0x3175633435](https://avatars.githubusercontent.com/u/36308948?v=4)](https://github.com/0x3175633435 "0x3175633435 (13 commits)")

---

Tags

dbgatewayormtabletablegatewayzend

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/phphackes-zend-tablegateway-factory/health.svg)

```
[![Health](https://phpackages.com/badges/phphackes-zend-tablegateway-factory/health.svg)](https://phpackages.com/packages/phphackes-zend-tablegateway-factory)
```

PHPackages © 2026

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