Open Source · MIT License · v1.8.0

Build Admin Dashboards
Your AI Agent Understands

GRIDKit is a zero-dependency PHP component framework designed for AI agents. 12 components, 1 CSS + 1 JS file, no build process. Your agent reads the skill file and builds complete CRUD applications in seconds.

code View on GitHub smart_toy Agent Skill visibility Live Demo
12
Components
0
Dependencies
2
Files (CSS + JS)
6
Themes

Why GRIDKit?

Everything you need to build production-ready admin dashboards. Nothing you don't.

smart_toy

Agent-First Design

Built with AI agents in mind. Feed the skill file to your AI assistant and it generates complete GRIDKit applications — tables, forms, modals, authentication.

bolt

Zero Dependencies

One CSS file. One JS file. No npm, no Composer, no build process. Clone and go. Works with any PHP 8.2+ project.

palette

Material Design 3

6 complete themes (Indigo, Ocean, Forest, Rose, Amber, Slate) with light and dark mode. All via CSS Custom Properties.

sync

AJAX-First

No page reloads. Tables search, sort, filter, paginate via AJAX. Forms submit and validate via AJAX. Everything stays fast.

grid_view

Fluent PHP API

Declarative, chainable API. Define a complete data table with search, sorting, pagination, and modals in under 15 lines of PHP.

phone_iphone

Responsive by Default

Every component is mobile-ready. Tables switch to card layout, sidebars become overlays, forms reflow to single column.

Agent Skill — Let AI Build For You

Give your AI agent the GRIDKit skill file. It knows every component, every pattern, every best practice.

How It Works

The GRIDKit Agent Skill is a structured document that teaches any AI assistant (Claude, GPT, Gemini, or any LLM) how to use GRIDKit optimally. It contains component references, code patterns, and best practices — everything an agent needs to generate correct GRIDKit code on the first try.

  1. Download GRIDKIT_SKILL.md from the repository
  2. Add it to your AI agent's context or project knowledge
  3. Describe what you need: "Create a user management dashboard"
  4. The agent generates working GRIDKit PHP code — tables, forms, modals, all wired up
Agent + GRIDKit Skill
// Click a scenario below to see it in action
 
user> Build me a product management table

GRIDKIT_SKILL.md

download View on GitHub

Add this file to your AI agent's project context. It contains complete documentation for all 12 components, code patterns, JavaScript API reference, and common recipes.

12 Production-Ready Components

Each component follows the same fluent PHP API. Chainable, declarative, zero boilerplate.

PHP — Complete CRUD in 12 lines
$table = new Table('products');
$table->query($db, "SELECT * FROM products ORDER BY name")
    ->search(['name', 'sku'])
    ->column('name', 'Product', ['sortable' => true])
    ->column('sku', 'SKU', ['width' => '120px'])
    ->column('price', 'Price', ['format' => 'currency', 'sortable' => true])
    ->column('is_active', 'Status', ['format' => 'label'])
    ->button('edit', ['icon' => 'edit', 'modal' => 'edit_product'])
    ->button('delete', ['icon' => 'delete', 'modal' => 'del', 'color' => 'error'])
    ->modal('edit_product', 'Edit', 'forms/product.php', ['size' => 'medium'])
    ->newButton('New Product', ['modal' => 'edit_product'])
    ->paginate(25)
    ->render();
table_chart

Table

Search, sort, paginate, AJAX reload, multi-select

edit_note

Form

16-column grid, 15 field types, AJAX submit

menu

Sidebar

Groups, badges, collapse, mobile overlay

web

Header

Fixed, search, user menu, theme switcher

open_in_new

Modal

Stackable dialogs, form-ready, sizes

analytics

StatCards

KPI display with trends and colors

lock

Auth

Session auth, bcrypt, remember-me

palette

Theme

6 themes, light/dark mode

smart_button

Button

Filled, outlined, text, tonal, FAB

layers

Layout

Sidebar-first, header-first modes

filter_list

FilterChips

Clickable filter chip buttons

date_range

YearFilter

Year navigation filter

Get Started in 30 Seconds

Clone, include, build. No configuration, no package managers, no build tools.

Terminal
# Clone GRIDKit
git clone https://github.com/mmollay/gridkit.git

# Copy the skeleton as your starting point
cp gridkit/skeleton.php my-app/index.php

# That's it. Open in browser.
code Star on GitHub visibility Explore Components