PHPackages                             barbarossa42/nextras-orm-command - 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. barbarossa42/nextras-orm-command

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

barbarossa42/nextras-orm-command
================================

Console command for Nextras/ORM

v1.0(8y ago)137[1 issues](https://github.com/Barbarossa-42/nextras-orm-command/issues)MITPHPPHP &gt;=7.0

Since Mar 23Pushed 3y ago1 watchersCompare

[ Source](https://github.com/Barbarossa-42/nextras-orm-command)[ Packagist](https://packagist.org/packages/barbarossa42/nextras-orm-command)[ Docs](https://github.com/Seldaek/monolog)[ RSS](/packages/barbarossa42-nextras-orm-command/feed)WikiDiscussions master Synced 2w ago

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

Nextras/Orm -Console command
============================

[](#nextrasorm--console-command)

```
composer require barbarossa42/nextras-orm-command

```

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

[](#configuration)

Using [Kdyby\\Console](https://github.com/Kdyby/Console), don´t forget to config file

Nette neon config example:

```
console:
    commands:
        - Barbarossa42\NextrasOrmCommand\CreateOrmCommand
```

Usage
-----

[](#usage)

`create:orm article Articles\Article articles`

will generate 3 files in folder Article (into specific directory):

**Article.php**

```
namespace App\Orm\Articles\Article;

use Nextras\Orm\Entity\Entity;

/**
 * Article Entity class
 * @property int $id {primary}
 */
class Article extends Entity
{
}
```

**ArticleRepository.php**

```
namespace App\Orm\Articles\Article;

use Nextras\Orm\Repository\Repository;

class ArticleRepository extends Repository
{
	public static function getEntityClassNames(): array
	{
		return [Article::class];
	}
}
```

**ArticleMapper.php**

```
namespace App\Orm\Articles\Article;

use Nextras\Orm\Mapper\Mapper;

class ArticleMapper extends Mapper
{
	protected $tableName = 'articles';
}
```

Command syntax
--------------

[](#command-syntax)

\[0\] command name

\[1\] entity name

\[2\] namespace (optional)

\[3\] table name (optional)

Config constants
----------------

[](#config-constants)

You can setup your custom extends Parents. For Example custom entity:

```
const NS_ENTITY = 'App\Core\Entity';
```

###  Health Score

21

—

LowBetter than 17% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3066d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/22701960?v=4)[Barbarossa](/maintainers/Barbarossa)[@barbarossa](https://github.com/barbarossa)

---

Top Contributors

[![universe-42](https://avatars.githubusercontent.com/u/3579000?v=4)](https://github.com/universe-42 "universe-42 (9 commits)")

---

Tags

ormcommandnextras

### Embed Badge

![Health badge](/badges/barbarossa42-nextras-orm-command/health.svg)

```
[![Health](https://phpackages.com/badges/barbarossa42-nextras-orm-command/health.svg)](https://phpackages.com/packages/barbarossa42-nextras-orm-command)
```

###  Alternatives

[ssch/typo3-rector

Instant fixes for your TYPO3 PHP code by using Rector.

2613.3M487](/packages/ssch-typo3-rector)[tempest/framework

The PHP framework that gets out of your way.

2.3k37.6k20](/packages/tempest-framework)[nextras/orm

Nextras Orm framework

3151.2M52](/packages/nextras-orm)[rector/rector-src

Instant Upgrade and Automated Refactoring of any PHP code

136411.0k14](/packages/rector-rector-src)[kdyby/doctrine

Doctrine integration into Nette Framework

1091.0M86](/packages/kdyby-doctrine)[modul-is/orm

Lightweight hybrid ORM/Explorer

1119.3k](/packages/modul-is-orm)

PHPackages © 2026

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