<p>There are third-party code generators, such as the <a href="https://github.com/boboldehampsink/element-type-generator" rel="nofollow">Element Type Generator</a> or the <a href="https://github.com/timkelty/generator-craft-plugin" rel="nofollow">Craft Plugin Generator</a></p>

<p>You also have the <a href="http://buildwithcraft.com/docs/plugins/migrations" rel="nofollow">migration tools</a> that generate code. Using the querygen command you can output Records as db query commands.</p>

CC BY-SA 3.0
2015-06-22T18:35:01.037Z
2015-06-22T19:10:33.127Z
2015-06-22T19:10:33.127Z
Bob Olde Hampsink
<p>I believe you're referring to <a href="http://www.yiiframework.com/doc/guide/1.1/en/topics.gii" rel="nofollow">Gii</a>, Yii's CRUD code generation tool.  We specifically removed that from Craft.</p>

<p>I'm not aware of any Craft-specific code generation tools.</p>

CC BY-SA 4.0
2021-09-23T07:44:47.477Z
Sad to hear, this is a big plus in the yii world
Honsa Stunna
CC BY-SA 3.0
2015-04-24T14:49:15.087Z
2015-04-24T14:49:15.087Z
Brad Bell
<p>There is Yii demo tutorial at <a href="http://www.yiiframework.com/screencasts/" rel="nofollow">http://www.yiiframework.com/screencasts/</a> that uses the Yii Code Generator. Are there similar Code Generator tools in Craft?</p>

<plugin-development>
Are there any tools for Craft similar to the Yii Code Generator?
# Are there any tools for Craft similar to the Yii Code Generator?

(Asked by: username_0 on 2015-04-24)

There is Yii demo tutorial at <http://www.yiiframework.com/screencasts/> that uses the Yii Code Generator. Are there similar Code Generator tools in Craft?

**Tags:** plugin-development

---

## 2 answers

### Answer by username_1 on 2015-06-22. Score: 3

There are third-party code generators, such as the [Element Type Generator](https://github.com/boboldehampsink/element-type-generator) or the [Craft Plugin Generator](https://github.com/timkelty/generator-craft-plugin)

You also have the [migration tools](http://buildwithcraft.com/docs/plugins/migrations) that generate code. Using the querygen command you can output Records as db query commands.


---

### Answer by username_2 on 2015-04-24. Score: 2

I believe you're referring to [Gii](http://www.yiiframework.com/doc/guide/1.1/en/topics.gii), Yii's CRUD code generation tool. We specifically removed that from Craft.

I'm not aware of any Craft-specific code generation tools.

> **Comments:**
> **username_3**: Sad to hear, this is a big plus in the yii world  

---

