Skip to content

edas11/php-cli-client-registration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Requirements

Requires php 7.2.10 and composer. Use "composer dump_autoload" or "composer install" in project directory before using this program

About

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

About

A simple client registration program

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published