Code generation from database, including controllers, models, views, templates and i18n
PHP
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
classes
config
views
README.md
codegen.png

README.md

Auto code generation step by step

  1. Drop the codegen into DOCROOT/modules/, enable codegen module in application/bootstrap.php
  2. Start to generate source code by access http://www.example.com/codegen
  3. All source code files will be generated in DOCROOT/temp/db_group_name/
  4. Generate code from defferent database config group http://www.example.com/codegen?m=db_group_name

Customize step by step

  1. Generation control in config/codegen.php
  2. Customize controller classes generation in classes/codegen/controller.php
  3. Customize model classes generation in classes/codegen/model.php
  4. Customize view classes generation in classes/codegen/view.php
  5. Customize view templates generation in views/codegen/(php | mustache | twig | smarty)/
  6. Customize i18n key-value pairs generation in classes/codegen/i18n.php

Snapshot

Kohana Codegen Snapshot!

ISC License (ISCL)

http://www.opensource.org/licenses/isc-license.txt