Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Codeigniter 3 Files CreatorNew to Visual Studio Code? Get it now.
Codeigniter 3 Files Creator

Codeigniter 3 Files Creator

Syed Murad Ali Shah

|
19,363 installs
| (2) | Free
Creating files never been so easy, with the help of CI3 Files Creator, you can create auth, crud, model, controller, migration etc with a few clicks.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Codeignter 3 Files Creator for vcode

Latest Release Installs Rating Fork All Contributors Open Issues Closed Issues Donate

Creating files never been so easy, CI3 Files Creator bring you comands to create necessary with a few step.

Features

  • Create REST API Controller file ✨NEW✨
  • Create view file
  • Create library google authentication / authy
  • Create hook
  • Create template
  • Create migration add table
  • Create migration rename table
  • Create migration add column to table
  • Create migration rename column in table
  • Create simple_auth
  • Create simple_auth_api
  • Create crud (include Model & Controller)
  • Create model file
  • Create controller file
  • Create library file
  • Create language file
  • Create helper file
  • Create htaccess file

How to use?

Press F1 then type CI3 and you will see a bunch of commands.

If ask for folder?

  • Give a name or Leave it empty. (If folder not found it will create new, else choose existing one.)

Asked for file name?

  • Give file name

And that's all.

How to use Template

  1. Press F1 and then CI3 make:template now choose your folder to if you
    want to make otherwise leave it empty, you can also use folder within folder,
    like admin/dashboard or user/template/front_end or user/template/backend_end etc.
  2. Load template library application\config\autoload.php here.
  3. Now in controller you have to call
  • $this->TEMPLATE_FILE_NAME->load('VIEW_FILE_NAME', $data);

For example if I set TEMPLATE_FILE_NAME as template and I have a view file name page.php

  • $this->template->load('page');
  • $this->template->load('page', $data);

Or you can use sub folder like this.

  • $this->template->load('folder_name/page', $data);

NOTE: if you use a folder for template like user_side then your view files must be inside
the user_side\pages directory!
pages is a folder where you will add futher files.

And that's all.

How to use Google Authenticator / Authy

  1. You need to call this library.

    • $this->load->library('authy');
  2. Now generate a secret code, this code will be used for adding it to
    Authy or Google authenticator. Also save it in DB against user.

    • $secretCode = $this->authy->createSecret();
  3. Once secretCode added to Authy, then you have to cross-check before
    activating it for a customer. Once user enter 6 digits code from authy.
    Pass userGivenCode to verifyCode. You will also use this when user want to
    login with an activated, OTP account.

    • $checkResult = $this->authy->verifyCode($secretCode, $userGivenCode);

[For Admin] in case you need see 30sec code, for a user you can simple get it
using, secretCode saved in DB..

  • $oneTimeCode = $this->authy->getCode($secretCode);
  1. Now generate QR Link using one of below.\

    • $qrCodeUrl = $this->authy->getQRCodeGoogleUrl('YourSiteName: user@example.com', $secretCode); // It will return Google QR URL\
    • $qrCodeUrl = $this->authy->getQRCodeQrServer('YourSiteName: user@example.com', $secretCode); // It will return QR Server QR URL
  2. This is not important but if you want your user your URL instead of QR link, generated in step 4.
    Call this in separate function, because header set
    to image only.\

    • $this->authy->generateQRCodeImage($qrCodeUrl);

How to use Migration

  1. Enable migration application\config\migration.php here.
  2. migration_type must be timestamp, if you set to Sequential migration won't work.
    And that's all.

How to use Migration Add Column to a table

  1. All you need here to enter a valid format i.e add_column_to_table you can see following examples.
  • You need to user add_ at the start and then use _to_ after column and before the table name.
    • Examples:
      add_name_to_users
      add_first_name_to_users
      add_first_name_to_users_details

How to use Migration rename Column to a table

  1. All you need here to enter a valid format i.e rename_column_to_column2_in_table you can see
    following examples.
  • You need to user rename_ at the start and then use _to_ after old column and then use
    new column name before _in_ and then use table name at last.
    • Examples:
      rename_name_to_username_in_users
      rename_first_name_to_full_name_in_users
      rename_first_name_to_full_name_in_users_details

Press F1 then type bellow commands

Command Function
CI3 make:library_google_authenticator It will create authy library .
CI3 make:hook It will create hook in hooks folder.
CI3 make:template It will create template in library folder.
CI3 make:migration:add_table It will create migration file in migration folder.
CI3 make:migration:rename_table It will create migration file in migration folder.
CI3 make:migration:add_column It will create migration for adding column to a table
file in migration folder.
CI3 make:migration:rename_column It will create migration for renaming column in a table
file in migration folder.
CI3 make:simple_auth It will create controller, model of complete
login and registration.
CI3 make:simple_auth_api It will create controller, model of complete login
and registration and will return json format.
CI3 make:crud It will create controller, model with crud functions.
CI3 make:api_controller It will create controller for REST API, it has dependency.
CI3 make:model It will create model file.
CI3 make:view It will create view file.
CI3 make:controller It will create controller file.
CI3 make:library It will create library file in library folder.
CI3 make:language It will create language file in language folder.
CI3 make:helper It will create helper file in helper folder.
CI3 make:htaccess It will create .htaccess file in root.

Dependencies of API Controller

  • application\config\rest.php
  • application\libraries\REST_Controller.php
  • application\libraries\Format.php
  • application\language\english\rest_controller_lang.php

This repository is public, your contribution will be appricated.

You can support me by donating, My USDT.TRC20 Address: TR7NHqjeKQxGTCi8q8ZY4pL8otSzgjLj6t

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft