PHPackages                             zeebee/kohana-generator - 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. zeebee/kohana-generator

ActiveKohana-module[Utility &amp; Helpers](/categories/utility)

zeebee/kohana-generator
=======================

Kohana module for generating application and module resources, includes a Builder class and Minion tasks.

1.1(13y ago)21236[1 issues](https://github.com/zeebinz/kohana-generator/issues)BSD revisedPHPPHP &gt;=5.4.0

Since Mar 17Pushed 13y ago6 watchersCompare

[ Source](https://github.com/zeebinz/kohana-generator)[ Packagist](https://packagist.org/packages/zeebee/kohana-generator)[ Docs](https://github.com/zeebinz/kohana-generator)[ RSS](/packages/zeebee-kohana-generator/feed)WikiDiscussions 3.3/master Synced 3w ago

READMEChangelogDependencies (1)Versions (4)Used By (0)

Generator for Kohana
====================

[](#generator-for-kohana)

This module, inspired by the Ruby on Rails tool of the same name, allows the automatic creation of application and module resources from templates using different configurable generators. It includes a versatile Builder class with a fluent interface for combining different generator types, and a set of Minion tasks for running generators from the command line.

Generator Builder
-----------------

[](#generator-builder)

The Builder's fluent interface allows easy creation of different resource types. At its simplest, to create a Log class in APPPATH/classes/Log.php:

```
Generator::build()->add_class('Log')->execute();

```

Different resources can also be created in one command by combining generator types:

```
Generator::build()
	->add_class('Logger_Log')
		->implement('Countable')
		->implement('ArrayAccess')
	->add_class('Log')
		->extend('Logger_Log')
		->blank()
	->add_unittest('Logger_Log')
		->group('logger')
		->group('logger.core')
	->with_module('logger')
	->execute();

```

In this example, a class is created with a stub for transparent extension in the 'logger' module directory, along with a skeleton unit test case for it. Global options can also be set on all the types added to the builder (in this case, the module name via `with_module()`).

See the Guide pages for more information on different types and examples of using the Builder in more complex cases. There are also plenty of examples in the Generator tasks.

Minion Tasks
------------

[](#minion-tasks)

The module includes a set of [Minion](http://github.com/kohana/minion) tasks for running generators from the commmandline. Start here for help and common options:

```
./minion generate --help

```

And then enjoy creating your application or module resources in one line:

```
./minion generate:class --name=Logger_Log --stub=Log --module=logger

```

See also the Guide pages for more information about different generator tasks and their options.

Current tasks include: class, controller, model, view, unittest, task, generator, interface, guide, module, config, message, trait (PHP &gt;= 5.4.0), etc.

Testing
-------

[](#testing)

This module is unit tested using the [Unittest module](http://github.com/kohana/unittest). You can use the *generator* group to run only the generator tests. See also the files in the `tests/fixtures` directory for sample Minion commands and their generated output.

Requirements
------------

[](#requirements)

The module was built against Kohana version 3.3, and requires Minion for running the tasks. Optional support for traits requires PHP &gt;= 5.4.0.

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community12

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

Total

2

Last Release

4846d ago

### Community

Maintainers

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

---

Top Contributors

[![zeebinz](https://avatars.githubusercontent.com/u/341424?v=4)](https://github.com/zeebinz "zeebinz (213 commits)")

---

Tags

generatorkohanacode-generationminionkohana module

### Embed Badge

![Health badge](/badges/zeebee-kohana-generator/health.svg)

```
[![Health](https://phpackages.com/badges/zeebee-kohana-generator/health.svg)](https://phpackages.com/packages/zeebee-kohana-generator)
```

###  Alternatives

[helsingborg-stad/municipio

A bootstrap theme for creating municipality sites.

4028.3k10](/packages/helsingborg-stad-municipio)[mautic/core

Mautic Open Source Distribution

9.8k2.6k9](/packages/mautic-core)[mediawiki/maps

Adds various mapping features to MediaWiki

78149.7k3](/packages/mediawiki-maps)[civicrm/civicrm-drupal-8

Open source constituent relationship management for non-profits, NGOs and advocacy organizations.

19246.3k2](/packages/civicrm-civicrm-drupal-8)[altis/core

Core module for Altis

19222.5k2](/packages/altis-core)[bmidget/kohana-formo

Formo is a form module for Kohana 3 that lets you work with forms as objects

1328.5k](/packages/bmidget-kohana-formo)

PHPackages © 2026

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