1. Go to this page and download the library: Download mmollay/gridkit library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
(new Form('product'))
->field('sku', 'SKU', 'text', ['idth' => 12])
->field('notes', 'Notes', 'textarea', ['width' => 16])
->field('unit', 'Unit', 'select', ['options' => $units, 'width' => 6])
->field('pack', 'Pack size', 'text', ['width' => 6, 'showIf' => ['field' => 'unit', 'equals' => 'pcs']]) // only while the unit is pcs
->values($product) // fill every field from a record, by name
->errors($errors) // show a failed save's messages, by name
->render();
bash
git clone https://github.com/mmollay/gridkit.git
cd gridkit && php tests/run.php
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.