/cli-crud

Project for testing CRUD in command line with PHP

Primary LanguagePHP

✨ CLI-CRUD ✨

📌 cli-crud is a project to test create, read, update and delete in database with MySQL.

🚀 Installation 🚀

📌 It's very simple you just need to have the docker and docker-compose installed.
With that installed just run the following command.

 $ docker-compose build
 $ docker-compose up -d
 $ docker-compose exec app ./app/index.php

🔥 It's very simple

🔥 Usage 🔥

📌 [--create|-C]: Creates an element in the table
Usage:
- First param: Name from a table into database;
- Second param: What wil be saved.

📌 [--delete|-D]: delete an element in the table
Usage:
- First param: Name from a table into database;
- Second param: id from an element in the table

📌 [--update|-U]: Update an element in the table
Usage:
- First param: Name from a table into database;
- Second param: id from an element in the table;.
- Third param: What wil be saved.

📌 [--read|-R]: Read all elements and all tables