Skip to content
GridPHP FrameworkGridPHP FrameworkGridPHP FrameworkDocumentation

Quick Start

GridPHP Framework is a RAD tool that enables development of PHP based project far more faster. Grid component itself contain a CRUD (create,read,update,delete) function which reduce the repeated work load. It support connection to all major database engines including SQL Server, Oracle, IBM DB2, MySQL, Postgres and others. It has master-detail, subgrid, data grouping, file uploading, excel mode and many other features.

Get started by downloading and running the community package locally:

  1. Download the package using composer, wget or the direct Download Link:

    Terminal window
    composer create-project gridphp/gridphp-community gridphp-community-main

    Or

    Terminal window
    wget https://www.gridphp.com/wp-content/uploads/gridphp-free-latest.zip
    unzip gridphp-free-latest.zip
  2. Extract the package and move to your web server root

    OR Run via PHP built-in server:

    Terminal window
    cd gridphp-community-main
    php -S localhost:8000

    Open http://localhost:8080 in your browser.

    Live Interactive Demo

    Note In case you see “The SQLite extension is not installed/enabled in PHP”:

    1. Open your php.ini
    2. Uncomment (remove ;) from extension=pdo_sqlite and extension=sqlite3
      extension=pdo_sqlite
      extension=sqlite3
    3. Restart your server php -S localhost:8000
  3. You can copy any code sample from the demos folder and update config.php to connect to your custom database. In order to integrate files in your custom project, Refer to the next section.

Installing Demos using Web Installer (Non-SQLite Setup)

Section titled “Installing Demos using Web Installer (Non-SQLite Setup)”

If you prefer to use a database like MySQL right away instead of SQLite, you can use the web-based visual installer:

  1. Extract the downloaded product archive in web root. e.g. www/gridphp

  2. Remove the database.db from demos/sample-db

  3. Open it in browser to run installer. e.g. http://localhost/gridphp and following the intallation steps.

If you prefer a manual database setup, follow these steps:

  1. Execute demos/sample-db/database-mysql.sql on a MySQL Database. It will create griddemo database. For PostgreSQL or SQLServer installation same process can be followed using respective database script in sample-db folder.

  2. Place all files in a directory on the web server. e.g. www/gridphp/

  3. Rename config.sample.php to config.php, and update database config. e.g.

    define("PHPGRID_DBTYPE","mysqli");
    define("PHPGRID_DBHOST","localhost");
    define("PHPGRID_DBUSER","root");
    define("PHPGRID_DBPASS","pass");
    define("PHPGRID_DBNAME","griddemo");
  4. Run the product demos in browser. e.g. http://localhost/gridphp/index.php

On server-side, we need:

  1. A Web Server: running PHP v7.2 or higher.
  2. A Database: MySQL, MariaDB, PostgreSQL, SQLite, SQL Server, Oracle or any other database.