Download the PHP package gridphp/ci4-starter without Composer
On this page you can find all versions of the php package gridphp/ci4-starter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download gridphp/ci4-starter
More information about gridphp/ci4-starter
Files in gridphp/ci4-starter
Package ci4-starter
Short Description CodeIgniter-4 application starter pre-configured with GridPHP low-code DataGrid designed for building lightning-fast CRUD, DB admin panels, CRMs & backoffice tools. It generates fully interactive, mobile-ready CRUDs from db tables of MySQL, PostgreSQL/Supabase, Oracle & SQLServer
License MIT
Homepage https://gridphp.com
Informations about the package ci4-starter
CodeIgniter 4 + GridPHP Application Starter
What is CodeIgniter 4 + GridPHP Starter?
CodeIgniter is a PHP full-stack web framework that is light, fast, flexible, and secure. GridPHP is a powerful datagrid component for PHP applications.
This repository provides an official, composer-installable application starter pre-configured for integrating GridPHP with CodeIgniter 4. It simplifies datagrid setup by automatically handling assets publishing, sample SQLite database configuration in .env file and sample master-detail datagrid integration out of the box.
For more information, see:
Installation & Updates
Using Composer
Run create-project to create a new project:
composer create-project automatically runs setup scripts that copy env → .env, fetch core GridPHP files, and publish front-end assets to public/gridphp/assets/.
Whenever there is a new release of CodeIgniter 4 or GridPHP, run:
When updating, check the CodeIgniter release notes to see if there are any changes you might need to apply to your app folder. The affected files can be copied or merged from vendor/codeigniter4/framework/app.
Setup & Configuration
-
Initial Configuration (
app.baseURL& Environment): Open.env(automatically generated duringcomposer create-project). Refer to CodeIgniter's Initial Configuration Guide for setup instructions:- Base URL: When publishing live, ensure you set
app.baseURLto your domain URL (e.g.,app.baseURL = 'https://example.com/'). For local development, by default it is set toapp.baseURL = 'http://localhost:8080/'. This ensuresbase_url()properly generates asset links for GridPHP JS/CSS files. - Environment: Set
CI_ENVIRONMENT = developmentwhile developing for debugging, and switch toCI_ENVIRONMENT = productionwhen deploying live.
- Base URL: When publishing live, ensure you set
-
Database Configuration:
.envis automatically created duringcomposer create-project. GridPHP automatically connects using your CodeIgniter database configuration (app/Config/Database.phpor.env).-
By default, the database configuration is set to SQLite database in
.env, it will use bundled SQLite sample database containing samplecustomers,ordersand other tables. - To connect to MySQL / MariaDB, edit your
.env:
-
-
Publish GridPHP Assets (Automated): Composer automatically copies GridPHP JS & CSS assets into
public/gridphp/assets/during install/update. You can manually run it anytime: -
Run Local Server:
Visit
http://localhost:8080in your browser.
Grid Workflows
Below are step-by-step walkthroughs demonstrating how to build a basic single-table grid ("Hello World") and an advanced Master-Detail grid.
Walkthrough 1: "Hello World" Grid (Single Table, Minimal Setup)
This walkthrough creates a simple, zero-configuration datagrid bound directly to a database table with no extra bells and whistles.
1. Controller (app/Controllers/Home.php)
2. View (app/Views/hello_grid.php)
Include GridPHP scripts/styles in your view header and output $output:
Walkthrough 2: Master-Detail Grid (Subgrid & Advanced Features)
This walkthrough demonstrates a feature-rich Master Grid linked to a Detail Subgrid via an AJAX endpoint.
1. Controller for Master & Detail (app/Controllers/Home.php)
2. Routes (app/Config/Routes.php)
Ensure routes are registered both get and post for master and detail endpoint:
3. View (app/Views/welcome_message.php)
Directory & File Overview
app/Config/GridPHP.php: Bridge configuration connecting CI4 database settings to GridPHP.app/Controllers/Home.php: Controller featuring master and detail grid methods.app/Views/welcome_message.php: View file loading GridPHP styles/scripts and displaying grid output.app/Config/Routes.php: Added routes for grid examples.writable/db/database.db: SQLite database for sample datapublic/gridphp/assets/: Published GridPHP front-end dependencies (JS, CSS, Themes).composer_script.php: Automated script for environment setup, file downloads, and asset publishing.
Troubleshooting
From the official doc:
- "Whoops! We seem to have hit a snag" → check write permissions for webuser on
writable/logs. - Make sure PHP's
intlandcurlextensions are installed (required by CodeIgniter 4). - SQLite path: make sure the
sqlite3PHP extension is enabled (php -m | grep sqlite).
Community & Support
License
- Scaffold & Starter Code: MIT License.
- CodeIgniter 4 Framework: MIT License.
- GridPHP Library: Subject to GridPHP licensing (Free / Commercial). See gridphp.com/compare for details.
All versions of ci4-starter with dependencies
codeigniter4/framework Version ^4.7
gridphp/gridphp-community Version ^1.0.5
