Skip to content

Little application with PHP, PDO and MySQL to run in CLI mode 🤖

License

Notifications You must be signed in to change notification settings

thiiagoms/student-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logo

CLI crud 🧑‍🎓

Example of CLI crud, just for educational purposes!

Dependencies

  • PHP +7.4
  • Composer

Install

  • Generate autoload with composer:
$ composer install
  • Copy .env.example to .env:
$ cp .env.example .env
  • Add your MySQL credentials in .env like:
# Database credentials
DATABASE_HOST=localhost
DATABASE_PORT=3306
DATABASE_NAME=std
DATABASE_USER=root
DATABASE_PASS=toor

Run

Run the script with

$ php app.php

██████╗ ██╗      █████╗ ███████╗███████╗
██╔════╝██║     ██╔══██╗██╔════╝██╔════╝
██║     ██║     ███████║███████╗███████╗
██║     ██║     ██╔══██║╚════██║╚════██║
╚██████╗███████╗██║  ██║███████║███████║
╚═════╝╚══════╝╚═╝  ╚═╝╚══════╝╚══════╝

[*] Author: Thiago thiiagoms
[*] Description: Little CLI crud
[*] Version: 1.0

=> For get help use: --help | -h

$ php app.php --help
  • If you want help, run:
$ php app.php --help

About

Little application with PHP, PDO and MySQL to run in CLI mode 🤖

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published