1. Go to this page and download the library: Download zen0x7/gridder 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/ */
$cols = [
"default" => 1, // On default should use 1 column
"sm" => 2, // When device is on "sm" then use 2 columns (span)
"md" => 2, // The same for the next ...
"lg" => 2,
"xl" => 2,
"2xl" => 2,
]
$meta = [
"gridder => [
"default" => 1, // means "grid-cols-1"
"sm" => 2, // means "sm:grid-cols-2"
"md" => 3, // means "md:grid-cols-3"
"lg" => 6, // means "lg:grid-cols-6"
"xl" => 12, // means "xl:grid-cols-12"
"2xl" => 12, // means "2xl:grid-cols-12"
]
]
$meta = [
"gridder => [
"default" => 1, // This means "col-span-1", if there are 1 column available, then will use "100%"
"sm" => 1, // This means "sm:col-span-1", if at "sm" are 2 columns available, then will use "1/2"
"md" => 1, // This means "md:col-span-1", if at "md" are 3 columns available, then will use "1/3"
"lg" => 3, // This means "lg:col-span-3", if at "lg" are 6 columns available, then will use "1/2"
"xl" => 3, // This means "xl:col-span-3", if at "xl" are 12 columns available, then will use "1/4"
"2xl" => 3, // This means "2xl:col-span-3", if at "2xl" are 12 columns available, then will use "1/4"
]
]