to composer

This commit is contained in:
2024-05-27 12:59:44 +03:00
parent 3f6e5ffcec
commit 42ab26a3db
19 changed files with 134 additions and 21 deletions

15
examples/simple.json Normal file
View File

@ -0,0 +1,15 @@
{
"meta": {
"title": "forma 1",
"columns": {
"email": "Email",
"description": "Описание 1",
"description2": "Описание 2"
},
"params": {"class": "table table-bordered", "border": "1"}
},
"data": [
{"email":"fas@mail.ru","description":"fafdgdfs","description2":"ffdghdas"},
]
}

11
examples/simple.php Normal file
View File

@ -0,0 +1,11 @@
<?php
require_once "../vendor/autoload.php";
use Itguild\Tables\ListJsonTable;
$json = file_get_contents('simple.json');
$table = new ListJsonTable($json);
$table->create();
$table->render();