simple show data with php console and table showing like this
Name | Phone | |
---|---|---|
Fendi | fendi@email.com | +62-9348-3434-3434 |
just clone this git
git clone https://github.com/sm-alfariz/phpconsole-table-database.git
dont forget
for install library like sympony console and Eloquent library for database connection
composer update
and change config/app.yml for database configuration
How to use?
run from your console, for see list data of contacts
php console.php contacts
Interactive php mode with psysh (like php artisan tinker)
php console.php interactive
Todo :
- need some auth maybe
- not yet finnished for crud operation
just have fun for this simple example, more documentation see below :
some tricK (linux only):
- create symlink file to console.php
ln -s console.php console
and add chmod to that filechmod +x console
and now you can execute that file with command./console
Efendi Hariyadi