Requires php 7.2.10 and composer. Use "composer dump_autoload" or "composer install" in project directory before using this program
cust-reg.php is a simple client registration program. Usage: php cust-reg.php <command>. It expects one of the following commands:
add
Description: Adds one client.
Usage: add "firstname" "lastname" "email" "phonenumber1" "phonenumber2" "comment"
add --csv
Description: Adds clients from csv.
Usage: add --csv="path/to/csv"
edit
Description: Edits client.
Usage: edit [--firstname="new value"] [--lastname="new value"] [--email="new value"] [--phonenumber1="new value"] [--phonenumber2="new value"] [--comment="new value"] "client email". For example: php cust-reg.php edit --lastname="Trump" someone@something.smth
delete
Description: Deletes a client.
Usage: delete "client email"
list
Description: Lists clients.
Usage: list
help
Description: Prints this help message.
Usage: help
end
Description: Deletes data file.
Usage: end