khayrulhasan / table
This is a simple class that outputs all the set keys and values as an HTML table
2.0.0
2022-01-03 19:04 UTC
This package is auto-updated.
Last update: 2024-10-29 06:25:23 UTC
README
Create a file named “ main.php" in your directory.
Run this command in your root directory terminal CMD: composer require khayrulhasan/table
<?php # file name : main.php use Khayrulhasan\Table\User; use Khayrulhasan\Table\UserCollection; require_once "vendor/autoload.php"; /* * data(s) */ $user1 = new User(1, 'Selim Reza', 'me@selimreza.com'); $user2 = new User(2, 'Half Way', 'selimppc@gmail.com'); $data = new UserCollection([$user1, $user2]); /* * final output */ $data->displayAsTable();