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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

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:

GridPHP CodeIgniter Integration Guide


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

  1. Initial Configuration (app.baseURL & Environment): Open .env (automatically generated during composer create-project). Refer to CodeIgniter's Initial Configuration Guide for setup instructions:

    • Base URL: When publishing live, ensure you set app.baseURL to your domain URL (e.g., app.baseURL = 'https://example.com/'). For local development, by default it is set to app.baseURL = 'http://localhost:8080/'. This ensures base_url() properly generates asset links for GridPHP JS/CSS files.
    • Environment: Set CI_ENVIRONMENT = development while developing for debugging, and switch to CI_ENVIRONMENT = production when deploying live.
  2. Database Configuration: .env is automatically created during composer create-project. GridPHP automatically connects using your CodeIgniter database configuration (app/Config/Database.php or .env).

    • By default, the database configuration is set to SQLite database in .env, it will use bundled SQLite sample database containing sample customers, orders and other tables.

    • To connect to MySQL / MariaDB, edit your .env:
  3. Publish GridPHP Assets (Automated): Composer automatically copies GridPHP JS & CSS assets into public/gridphp/assets/ during install/update. You can manually run it anytime:

  4. Run Local Server:

    Visit http://localhost:8080 in 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

Troubleshooting

From the official doc:


Community & Support


License


All versions of ci4-starter with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
codeigniter4/framework Version ^4.7
gridphp/gridphp-community Version ^1.0.5
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package gridphp/ci4-starter contains the following files

Loading the files please wait ...