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 2y 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 2mo 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 19% 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

2970d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0b511c9b9734ba81c9a5c27c169212e04673664165e9e08193f3cbbaaf880d10?d=identicon)[Barbarossa](/maintainers/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

[doctrine/doctrine-bundle

Symfony DoctrineBundle

4.8k241.3M3.3k](/packages/doctrine-doctrine-bundle)[doctrine/persistence

The Doctrine Persistence project is a set of shared interfaces and functionality that the different Doctrine object mappers share.

4.1k286.5M763](/packages/doctrine-persistence)[gedmo/doctrine-extensions

Doctrine behavioral extensions

4.1k118.8M365](/packages/gedmo-doctrine-extensions)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.3k](/packages/illuminate-database)[beberlei/doctrineextensions

A set of extensions to Doctrine 2 that add support for additional query functions available in MySQL, Oracle, PostgreSQL and SQLite.

2.1k75.1M146](/packages/beberlei-doctrineextensions)[nextras/orm

Nextras Orm framework

3141.2M42](/packages/nextras-orm)

PHPackages © 2026

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