Skip to content

Php Console Table with Symfony Console and get data from mysql database

Notifications You must be signed in to change notification settings

sm-alfariz/phpconsole-table-database

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Table with php console and database

simple show data with php console and table showing like this

Name Email Phone
Fendi fendi@email.com +62-9348-3434-3434

Instalation

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 :

sympony console

laravel Eloquent

some tricK (linux only):

  • create symlink file to console.php ln -s console.php console and add chmod to that file chmod +x console and now you can execute that file with command ./console

Efendi Hariyadi

About

Php Console Table with Symfony Console and get data from mysql database

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages