PHPackages                             rauwebieten/yii-activerecord-tools - 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. rauwebieten/yii-activerecord-tools

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

rauwebieten/yii-activerecord-tools
==================================

YII2 active record tools

v1.0.8(3mo ago)0505PHPPHP &gt;=7.3.0

Since Dec 1Pushed 3mo ago1 watchersCompare

[ Source](https://github.com/rauwebieten/yii-activerecord-tools)[ Packagist](https://packagist.org/packages/rauwebieten/yii-activerecord-tools)[ RSS](/packages/rauwebieten-yii-activerecord-tools/feed)WikiDiscussions master Synced today

READMEChangelog (9)Dependencies (28)Versions (10)Used By (0)

YII ActiveRecord Tools
======================

[](#yii-activerecord-tools)

Generates active record classes for YII2

This script generates model classes, and query classes for each table in the provided database. The script generates base classes which contain all functional code, and concrete classes for you to modify.

Concrete classes are never overwritten.
Base classes are overwritten when the script is ran.

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

[](#installation)

Install with composer

```
composer require rauwebieten/yii-activerecord-tools

```

Add module to your console app config

```
    ...
    'modules' => [
        'activerecord_tools' => [
            'class' => \rauwebieten\yiiactiverecordtools\ActiveRecordToolsModule::class,
            'db' => 'db',
        ],
    ],
    'bootstrap' => ['activerecord_tools'],
    ...

```

possible configuration options:

- db: the name of the database component, defaults to 'db'
- namespace: the namespace in which the classes need to generate, defaults to 'app\\models'
- baseModelClass: base class for generated active record models, defaults to ActiveRecord::class
- baseQueryClass: base class for generated qeury classes, defaults to ActiveQuery::class

Usage
-----

[](#usage)

```
php yii activerecord_tools/generate/models

```

Models are generated in your models folder. Commit and use.

###  Health Score

43

—

FairBetter than 89% of packages

Maintenance82

Actively maintained with recent releases

Popularity16

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity55

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 81.1% 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 ~243 days

Recently: every ~326 days

Total

9

Last Release

93d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/11740475?v=4)[Peter ](/maintainers/rauwebieten)[@rauwebieten](https://github.com/rauwebieten)

---

Top Contributors

[![peter-kinamo](https://avatars.githubusercontent.com/u/20679429?v=4)](https://github.com/peter-kinamo "peter-kinamo (30 commits)")[![rauwebieten](https://avatars.githubusercontent.com/u/11740475?v=4)](https://github.com/rauwebieten "rauwebieten (7 commits)")

###  Code Quality

TestsCodeception

### Embed Badge

![Health badge](/badges/rauwebieten-yii-activerecord-tools/health.svg)

```
[![Health](https://phpackages.com/badges/rauwebieten-yii-activerecord-tools/health.svg)](https://phpackages.com/packages/rauwebieten-yii-activerecord-tools)
```

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M3.1k](/packages/craftcms-cms)[tempest/framework

The PHP framework that gets out of your way.

2.2k34.4k15](/packages/tempest-framework)[bizley/migration

Migration generator for Yii 2.

296389.5k11](/packages/bizley-migration)[filament/support

Core helper methods and foundation code for all Filament packages.

2331.0M245](/packages/filament-support)[yii2tech/illuminate

Yii2 to Laravel Migration Package

11416.2k](/packages/yii2tech-illuminate)[dagger/dagger

Dagger PHP SDK

261.1k](/packages/dagger-dagger)

PHPackages © 2026

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