khayrulhasan / table
This is a simple class that outputs all the set keys and values as an HTML table
Installs: 9
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
pkg:composer/khayrulhasan/table
This package is auto-updated.
Last update: 2025-12-29 03:57:20 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();