PHPackages                             corelib/coregen - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. corelib/coregen

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

corelib/coregen
===============

Coregen is a tool to generates corelib models and data classes.

271PHP

Since May 30Pushed 9y ago1 watchersCompare

[ Source](https://github.com/corelibphp/coregen)[ Packagist](https://packagist.org/packages/corelib/coregen)[ RSS](/packages/corelib-coregen/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

What is coregen
---------------

[](#what-is-coregen)

Coregen generates corelib files in a consistent way.

Install
-------

[](#install)

Install dependencies using composer

```
$composer install

```

Create a config.php in the includes dir see sampleConfig.php in that folder

How to use it
-------------

[](#how-to-use-it)

To generate files you go through the run

```
$ ./corelibgen.php --name User --dir ~/projects/myapp/lib/MyApp/ --namespace "\MyApp\User" --table user

Created /home/someuser/projects/myapp/lib/MyApp/User/Model/UserCollection.php
Created /home/someuser/projects/myapp/lib/MyApp/User/Model/UserBO.php
Created /home/someuser/projects/myapp/lib/MyApp/User/UserFactory.php
Created /home/someuser/projects/myapp/lib/MyApp/User/Data/UserDAOInterface.php
Created /home/someuser/projects/myapp/lib/MyApp/User/Data/UserDAOMySQL.php
Created /home/someuser/projects/myapp/lib/MyApp/User/Data/UserDSOInterface.php
Created /home/someuser/projects/myapp/lib/MyApp/User/Data/UserDSOMySQL.php

```

###  Health Score

21

—

LowBetter than 18% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 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.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/792553?v=4)[Patrick Forget](/maintainers/patforg)[@patforg](https://github.com/patforg)

---

Top Contributors

[![patforg](https://avatars.githubusercontent.com/u/792553?v=4)](https://github.com/patforg "patforg (15 commits)")

### Embed Badge

![Health badge](/badges/corelib-coregen/health.svg)

```
[![Health](https://phpackages.com/badges/corelib-coregen/health.svg)](https://phpackages.com/packages/corelib-coregen)
```

###  Alternatives

[maize-tech/laravel-markable

Laravel Markable

755229.4k](/packages/maize-tech-laravel-markable)[apigee/devportal-kickstart-project

Composer project template for the Apigee Developer Portal Drupal distribution.

1124.7k](/packages/apigee-devportal-kickstart-project)[blockpc/select2-wire

Free Select2 Livewire package

251.2k](/packages/blockpc-select2-wire)

PHPackages © 2026

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