Quick Start
Introduction
Section titled “Introduction”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.
Setting up the package
Section titled “Setting up the package”Get started by downloading and running the community package locally:
-
Download the package using
composer,wgetor the direct Download Link:Terminal window composer create-project gridphp/gridphp-community gridphp-community-mainOr
Terminal window wget https://www.gridphp.com/wp-content/uploads/gridphp-free-latest.zipunzip gridphp-free-latest.zip -
Extract the package and move to your web server root
OR Run via PHP built-in server:
Terminal window cd gridphp-community-mainphp -S localhost:8000Open http://localhost:8080 in your browser.
Live Interactive Demo
Note In case you see “The SQLite extension is not installed/enabled in PHP”:
- Open your
php.ini - Uncomment (remove
;) fromextension=pdo_sqliteandextension=sqlite3extension=pdo_sqliteextension=sqlite3 - Restart your server
php -S localhost:8000
- Open your
-
You can copy any code sample from the
demosfolder and updateconfig.phpto 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:
-
Extract the downloaded product archive in web root. e.g. www/gridphp
-
Remove the
database.dbfromdemos/sample-db -
Open it in browser to run installer. e.g. http://localhost/gridphp and following the intallation steps.
Installing Demos Manually
Section titled “Installing Demos Manually”If you prefer a manual database setup, follow these steps:
-
Execute
demos/sample-db/database-mysql.sqlon a MySQL Database. It will creategriddemodatabase. For PostgreSQL or SQLServer installation same process can be followed using respective database script insample-dbfolder. -
Place all files in a directory on the web server. e.g.
www/gridphp/ -
Rename
config.sample.phptoconfig.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"); -
Run the product demos in browser. e.g. http://localhost/gridphp/index.php
Requirements
Section titled “Requirements”On server-side, we need:
- A Web Server: running PHP v7.2 or higher.
- A Database: MySQL, MariaDB, PostgreSQL, SQLite, SQL Server, Oracle or any other database.