PHPackages                             pomm-project/pomm-module - 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. pomm-project/pomm-module

ActiveLibrary

pomm-project/pomm-module
========================

Zend Framework 2 Module that provides Pomm2 basic functionality

3.0.0(8y ago)632.0k↓20%2[1 PRs](https://github.com/pomm-project/PommModule/pulls)MITPHPPHP &gt;=5.4.4

Since Mar 25Pushed 5y ago3 watchersCompare

[ Source](https://github.com/pomm-project/PommModule)[ Packagist](https://packagist.org/packages/pomm-project/pomm-module)[ Docs](http://www.pomm-project.org/)[ RSS](/packages/pomm-project-pomm-module/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (5)Versions (4)Used By (0)

PommModule
==========

[](#pommmodule)

Pomm module to use Pomm2 with zf2

If you want to use Pomm 1.x, there's a 1.0 branch.

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

[](#installation)

This package can be installed via composer

Configuration
-------------

[](#configuration)

Just add it to your application configuration file

```
return array(
    'pomm' => array(
        'databases' => array(
            'con1' => array (
                // Mandatory data source name
                'dsn'  => 'pgsql://postgres:postgres@127.0.0.1/myschema',
                // Optional session builder overload
                'class:session_builder' => '\Database\ModelManager\SessionBuilder',
            ),
        ),
    ),
);

```

Session builder
---------------

[](#session-builder)

You can define an optional session builder. As the "Database" module is loaded by default, it's a good idea to define it in.

Usage
-----

[](#usage)

All generated files will be saved in a "Database" module. You can add your own files like specific SessionBuilder in the module.

Inspection
----------

[](#inspection)

### Config

[](#config)

```
# Inspect the configuration
vendor/bin/pomm.php inspect-config

```

### Database

[](#database)

```
# Inspect a database
vendor/bin/pomm.php inspect-database pstudio2

```

### Schema

[](#schema)

```
# Inspect a schema
vendor/bin/pomm.php inspect-schema pstudio2 public

```

### Relation

[](#relation)

```
# Inspect a relation
vendor/bin/pomm.php inspect-relation pstudio2 organization people

```

Generation
----------

[](#generation)

### Model

[](#model)

```
# Generate the "people" model for "organization" schema
vendor/bin/pomm.php generate-model pstudio2 organization people --force

```

### Structure

[](#structure)

```
# Generate the "people" structure for "organization" schema
vendor/bin/pomm.php generate-structure pstudio2 organization people

```

### Entity

[](#entity)

```
# Generate the "people" relation for "organization" schema
vendor/bin/pomm.php generate-entity pstudio2 organization people --force

```

### Relation

[](#relation-1)

```
# Generate entity, structure and model for one relation
vendor/bin/pomm.php generate-relation-all pstudio2 organization people

```

### All for a given schema

[](#all-for-a-given-schema)

```
# Generate relation, structure and models for all relations of a schema
vendor/bin/pomm.php generate-schema-all pstudio2 organization

```

### All for a given database

[](#all-for-a-given-database)

```
# Generate structure, model and entity file for all relations of all schemas in a database
vendor/bin/pomm.php generate-database-all pstudio2

```

Tests
-----

[](#tests)

The tests are not implemented yet. But 'll be launch with

```
./vendor/bin/phpunit test

```

TODO
----

[](#todo)

- Add a generator for model layer
- Add a generator for ZF2 configuration

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity33

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity60

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

Total

3

Last Release

3261d ago

Major Versions

1.0.x-dev → 2.0.02016-02-09

2.0.0 → 3.0.02017-06-14

PHP version history (2 changes)1.0.x-devPHP &gt;=5

2.0.0PHP &gt;=5.4.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/ad548f45d6e5ef262a3fccb208a92f2e31d6e53b71e989ec49fb3c7fe03dd020?d=identicon)[chanmix51](/maintainers/chanmix51)

---

Top Contributors

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

---

Tags

modulezf2pomm2

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/pomm-project-pomm-module/health.svg)

```
[![Health](https://phpackages.com/badges/pomm-project-pomm-module/health.svg)](https://phpackages.com/packages/pomm-project-pomm-module)
```

PHPackages © 2026

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