
CodeIgniter Wizard – a new PHP CRUD Code Generator
CodeIgniter Wizard is a relational database-driven PHP code generator and a Rapid Application Development (RAD) tool for the Mac which reads your MySQL database tables and columns, presents you with some options to determine which ones to include, how to interpret them, and then quickly creates a working web application with full CRUD functionality based on version 4.x of the CodeIgniter framework complete with entity models, views and controllers (even entities) and a Bootstrap 4-based CSS layout. The generated code is secure, clean, highly re-usable, and portable.
It is a desktop application with an intuitive GUI which runs on computers with macOS High Sierra or later installed.
It’s functionality was inspired from both Model, View and Controller scaffolder for ASP.NET MVC web applications in Visual Studio for Windows, and fine-grained table field selection and configuration matrix of CodeCharge Studio a sophisticated and robust RAD software for Windows which used to be popular between 2000 and 2012.
What can CodeIgniter Wizard be used for (aside from CRUD operations)?
Table of Contents
CodeIgniter Wizard is currently most suitable for developing the basis for administrative control panels for back-ends such as custom CMS, or any database-driven records filing and management application such as CRM and HRM systems. Furthermore the generated entity-models can be used for any type of application including the end user-facing front-end layer, therefore saving an considerable amount of time in addition to the backend development.
Furthermore, since form design and validation is one of the most tedius and time-consuming tasks, the highly re-usable code generated by CodeIgniter Wizard for this can be used elsewhere – inside or outside the application.
Another use case might be that in case you are new to CodeIgniter and want to learn it by examining code written with good practices, CodeIgniter Wizard can add great value to your learning process with.
Similarly CI 3 developers who want the port their code base, but are unfamiliar with CI 4 can benefit a great deal from CodeIgniter Wizard to learn about the new version of CodeIgniter.
How is CodeIgniter Wizard different from other code generators?
Code generators in the market usually create some code sufficient enough to get the basic CRUD operations done usually in a cryptic way, not necessarily providing a very elegant user experience, and their code usually relies on some kind of heavy-weight custom library (even many of which are like framework-in-a-framework) and the code they generate is usually not portable elsewhere. Because CodeIgniter Wizard adds exception handling to code it generates for performing database write operations, it add greats value and robustness to the produced web applications.
In contrast, CodeIgniter Wizard generates pretty standard and highly portable code which doesn’t really have any 3rd party dependency.
What code does CodeIgniter Wizard exactly generate?
Class files for entities, models and controllers, view files for grid / table list screens, and forms with a diverse possibility of fields like input text, textarea, number, email, checkbox, radio buttons, dropdown select options, sidebar content and a simple dashboard starter.
- Entity classes
- Model classes (plus traits if UUID and/or slug generation is ever needed)
- Controller Classes
- Form view files
- List (grid) views files
- Admin Dashboard & Auth template files
The views built constitute basic master-detail functionality.
The generated code includes the necessary input sanitization and form validation, also whatever’s required to select joined data across multiple database tables expecially conforming to foreign keys or custom relationships set in the GUI by the user.
Web Applications Generated with CodeIgniter Wizard
Web applications created with CodeIgniter Wizard have class and view files conforming to the MVC design pattern which you can customize to suit your own needs. The model and controller classes feature all the necessary methods for CRUD operations on the database.
After you’re done creating your project in CodeIgniter Wizard, you can take it to your own develop environment and add your custom development on top of it.
Or you can only copy the parts you see fit to your project from the generated web application, which will still save you a great deal of time than creating everything from scratch or duplicating from your previous project.
Hand-Over from CI Wizard
- You can take the entire web app and write your own code on top of it
- Alternatively copy part(s) of it from entities and models to form fields or controller validation methods.
- Don’t like the template? Swap it with your own, since cross-cutting concerns are minimal.
- You can customize some or all of the generated code without worrying about dependencies as there are none!
What generated Code Looks Like
Watch an End-to-End Video Demo (Updated in 2022)
Version 2 of CodeIgniter Wizard for Mac the ultimate database-driven web app boilerplate and CRUD code generator is here with long-awaited features such as user authentication & authorization, file uploads, localization (i18n), data tables export to Excel and .csv files, and many more…
In this video, you will see the making of a CodeIgniter 4 web application driven by a relational database using CodeIgniter Wizard on macOS – from the very beginning to the end.
Latest version of CodeIgniter Wizard is available on the Mac App Store.
YouTube Page
CodeIgniter PHP CRUD Generator on YouTube
Product Web Site
CodeIgniter Wizard is the first PHP CRUD code generator specifically made for Mac and is a great time-saver for PHP developers who can delegate some of their work to this powerful addition to the toolset. More information can be found on the product web site and Ozar.net’s products page.
5 Comments
Can I use this php crud generator with an old Mac running OS X high sierra?
Yes, you can. CI Wiz runs on macOS versions as old as High Sierra, and as recent as v11.x Big Sur.
What third-party libraries are used from image uploads and post-processing?
CodeIgniter Wiz uses no third-party libraries for image uploads or image post-processing. In fact, no 3rd party library is used for the backend.
The only 3rd party libs used are only for the front end and are limited to jQuery, datatables.net, and select2 (for filterable dropdown menus).
All backend components are pure CodeIgniter4 files and functions. One little exception is for the ‘auth’ functionality where the “Myth Auth” sub-framework is currently used as the only first-party package from the lead developer of CodeIgniter4.
Thanks.