ArtiGrid
v1.5

Get Started


<?php

    // config/config.php
    return [
        'baseurl' => '/ArtiGrid/artigrid/', // url to library
        'db' => [
            'driver' => 'mysql',
            'host' => 'localhost',
            'port' => 3306,
            'dbname' => 'artigrid',
            'user' => 'root',
            'password' => '',
            'charset' => 'utf8'
        ],
        'forms' => [
            'required_all_fields' => true // form field required option
        ],
        'filter' => true,
        'search' => true,
        'add' => true,
        'refresh' => true,
        'edit' => true,
        'checkbox' => true,
        'dropdownpage' => true,
        'pagination' => true,
        'delete' => true,
        'delete_multiple' => true,
        'mail' => [
            'host' => 'smtp.gmail.com',
            'username' => 'demo.example@gmail.com',
            'password' => 'xxxx xxxx xxxx xxxx',
            'port' => 587,
            'secure' => 'tls',
            'from' => 'demo.test@gmail.com',
            'from_name' => 'ArtiGrid'
        ]
    ];
?>

Use basic


<?php
    
    require 'ArtiGrid.php'; // path to the Artigrid file

    $grid = new ArtiGrid();
    $grid->table('payments')
        ->template('bootstrap5')
        ->fieldCss('customerNumber', ['customerNumber', 'demo'])
        ->export(['excel','pdf','csv']) // Export buttons to Excel, PDF, and CSV
        ->formFields(['customerNumber','checkNumber','paymentDate', 'amount']) // show certain fields in the form
        ->modal();
    echo $grid->render();
?>
paymentId customerNumber checkNumber paymentDate amount Actions