PHP Classes

Go Installer: Generate CodeIgniter applications' installer files

Recommend this page to a friend!
  Info   View files Example   View files View files (9)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 212 All time: 8,323 This week: 97Up
Version License PHP version Categories
goinstaller 1.0Shareware5PHP 5, Databases, Files and Folders, C..., C...
Description 

Author

This class can generate CodeIgniter applications' installer files.

It takes some configuration parameters and generates scripts to work as configuration files for use with CodeIgniter files.

The class uses template scripts that can work with either CodeIgniter version 2 or 3.

Innovation Award
PHP Programming Innovation award nominee
December 2017
Number 3
CodeIgniter is a very popular PHP framework used for developing Web applications.

This package can generate files for configuration installation of CodeIgniter applications.

Manuel Lemos
Picture of Abed Nego Ragil Putra
  Performance   Level  
Name: Abed Nego Ragil Putra is available for providing paid consulting. Contact Abed Nego Ragil Putra .
Classes: 8 packages by
Country: Indonesia Indonesia
Age: 31
All time rank: 106314 in Indonesia Indonesia
Week rank: 24 Up1 in Indonesia Indonesia Up
Innovation award
Innovation award
Nominee: 4x

Winner: 1x

Example

<?php
error_reporting
(0);
$db_config_path = '../application/config/database.php';

if(
$_SERVER['REQUEST_METHOD'] == 'POST' && $_POST) {
   
    require_once(
'taskCoreClass.php');
    require_once(
'includes/databaseLibrary.php');

   
$core = new Core();
   
$database = new Database();

    if(
$core->checkEmpty($_POST) == true)
    {
        if(
$database->create_database($_POST) == false)
        {
           
$message = $core->show_message('error',"The database could not be created, make sure your the host, username, password, database name is correct.");
        }
        else if (
$database->create_tables($_POST) == false)
        {
           
$message = $core->show_message('error',"The database could not be created, make sure your the host, username, password, database name is correct.");
        }
        else if (
$core->checkFile() == false)
        {
           
$message = $core->show_message('error',"File application/config/database.php is Empty");
        }
        else if (
$core->write_config($_POST) == false)
        {
           
$message = $core->show_message('error',"The database configuration file could not be written, please chmod application/config/database.php file to 777");
        }

        if(!isset(
$message)) {
           
$urlWb = $core->getAllData($_POST['url']);
           
header( 'Location: ' . $urlWb ) ;
        }
    }
    else {
       
$message = $core->show_message('error','The host, username, password, database name, and URL are required.');
    }
}
?>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>Install | Welcome to Installer CodeIginter by Abed Putra</title>
        <link href="https://maxcdn.bootstrapcdn.com/bootswatch/3.3.7/cosmo/bootstrap.min.css" rel="stylesheet">
    </head>
    <body>
    <div class="container">
        <div class="col-md-4 col-md-offset-4">
            <h1>Installer</h1>
            <hr>
            <?php
           
if(is_writable($db_config_path))
            {
           
?>
<?php if(isset($message)) {
                echo
'
                <div class="alert alert-warning alert-dismissible" role="alert">
                    <button type="button" class="close" data-dismiss="alert" aria-label="Close">
                        <span aria-hidden="true">&times;</span>
                    </button>
                '
. $message . '
                </div>'
;
                }
?>

                <form id="install_form" method="POST" action="<?php echo $_SERVER['PHP_SELF']; ?>">
                <div class="form-group">
                    <label for="hostname">Hostname</label>
                    <input type="text" id="hostname" value="localhost" class="form-control" name="hostname" />
                    <p class="help-block">Your Hostname.</p>
                </div>
               
                <div class="form-group">
                    <label for="username">Username</label>
                    <input type="text" id="username" class="form-control" name="username" />
                    <p class="help-block">Your Username.</p>
                </div>
               
                <div class="form-group">
                    <label for="password">Password</label>
                    <input type="password" id="password" class="form-control" name="password" />
                    <p class="help-block">Your Password.</p>
                </div>
               
                <div class="form-group">
                    <label for="database">Database Name</label>
                    <input type="text" id="database" class="form-control" name="database" />
                    <p class="help-block">Your Database Name.</p>
                </div>
               
                <div class="form-group">
                    <label for="database">URL</label>
                    <input type="text" id="url" class="form-control" name="url" placeholder="http://abedputra.com/" />
                    <p class="help-block">Your URL Website.</p>
                </div>
               
                <div class="form-group">
                    <label for="database">CodeIgniter Version</label>
                    <select class="form-control" id="template" name="template" />
                        <option value="2">2</option>
                        <option value="3">3</option>
                    </select>
                    <p class="help-block">Your CodeIgniter Version.</p>
                </div>
               
                <input type="submit" value="Install" class="btn btn-primary btn-block" id="submit" />
                </form>
       
                <?php
               
}
                else {
               
?>
<p class="alert alert-danger">
                    Please make the application/config/database.php file writable.<br>
                    <strong>Example</strong>:<br />
                    <code>chmod 777 application/config/database.php</code>
                    </p>
                <?php
               
}
               
?>
</div>
           
            <footer>
                <div class="col-md-12" style="text-align:center;margin-bottom:20px">
                    <hr>
                    Copyright - 2017 | <a href="http://abedputra.com">abedputra.com</a>
                </div>
            </footer>
      </div>
      <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js" type="text/javascript"></script>
      <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
    </body>
</html>


Details

GoInstaller

What is GoInstaller? GoInstaller is installer for CodeIgniter with user interface (UI).

Screenshot

<img width="694" alt="GoInstaller" src="https://user-images.githubusercontent.com/11581453/32705473-dc558484-c84f-11e7-944a-a426beea5e47.png">

Feature

  • Install codeigniter version 2 and 3
  • Easy to use

How to use?

  • Clone or download
  • Place the install folder inside/root the codeigniter folder
  • Open SQL command file on assets->sqlcommand.sql
  • Add command SQL into sqlcommand.sql
  • Make sure your codeigniter database (application->config->database.php) to cmod 777
  • Open http://(Your Link)/install
  • Fill the form ,Hostname, Username, etc
  • Your URL website is link to redirect to your website after the installer is done
  • Done

About

GoInstaller is based frontend on the Bootstrap framework created by Mark Otto and Jacob Thorton.

LICENSE

The MIT License (MIT).

Copyright (c) 2017, Abed Putra.

Please feel free to send me an email if you have any problems. Thank you so much, my email : abedputra@gmail.com.


  Files folder image Files  
File Role Description
Files folder imageinstall (2 files, 2 directories)
Accessible without login Plain text file CODE_OF_CONDUCT.md Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  install  
File Role Description
Files folder imageassets (1 file)
Files folder imageincludes (3 files)
  Accessible without login Plain text file index.php Example Example script
  Plain text file taskCoreClass.php Class Class source

  Files folder image Files  /  install  /  assets  
File Role Description
  Accessible without login Plain text file sqlcommand.sql Data Auxiliary data

  Files folder image Files  /  install  /  includes  
File Role Description
  Plain text file databaseLibrary.php Class Class source
  Accessible without login Plain text file templatevthree.php Aux. Auxiliary script
  Accessible without login Plain text file templatevtwo.php Aux. Auxiliary script

 Version Control Unique User Downloads Download Rankings  
 100%
Total:212
This week:0
All time:8,323
This week:97Up