ArtiGrid
v1.6

Get Started

In this version, the baseUrl configuration has been removed to simplify the setup process. ArtiGrid now automatically detects the correct paths and URLs internally, making it easier to integrate without requiring manual configuration. This allows developers to get started faster with minimal setup.


<?php

    // config/config.php
    return [
        '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,
        'actionsPosition' => 'right',
        'edit' => true,
        'view' => true,
        'checkbox' => true,
        'dropdownpage' => true,
        'pagination' => true,
        'delete' => true,
        'delete_multiple' => true,
        'mail' => [
            'host' => 'smtp.gmail.com',
            'username' => 'daniel.telematico@gmail.com',
            'password' => 'vynk ovgv foyv vbcs',
            'port' => 587,
            'secure' => 'tls',
            'from' => 'daniel.telematico@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