Skip to content

This is a simple PHP CLI APP designed to track donations, enables log donations to specific charities.

Notifications You must be signed in to change notification settings

ModJuska123/donation-app-php-cli-project

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

donation-app-php-cli-project

This is a simple PHP CLI APP designed to track donations, enables log donations to specific charities. Project is developed for educational purposes only.

image info

📑 Table of Contents

  • Installation
  • Running the APP
  • Use commands in VSC terminal
  • Authors
  • License

🚀Installation

To get started:

  1. Open the folder to clone the APP:
cd YourFoldersName
  1. Clone the APP:
git clone https://github.com/ModJuska123/donation-app-php-cli-project
  1. Run a XAMPP server (Apache and Mysql).

  2. Create a fundraiser DB with tables charities(columns: id;name;email) and donations (columns: id;name;amount;charity_id;date).

  3. Create a csv file (columns: name;email).

🎉Running the APP

  1. Open the APP you just cloned entering cd YourFoldersName.
  2. Run the APP entering php index.php into the terminal.

🧪Use commands in VSC terminal

  1. To view list of charities:
    php index.php --controller=Charity --method=charitiesList
  2. To add a new charity:
    php index.php --controller=Charity --method=create --name=CharityName --email=Charity@email.com
  3. To edit a charity:
    php index.php --controller=Charity --method=update --id=CharityId --name=NewCharity --email=newCharity@gmail.com
  4. To delete a charity:
    php index.php --controller=Charity --method=delete --id=CharityId
  5. To add a donation to a charity:
    php index.php --controller=Donation --method=add --charityId=CharityId --name=YourName --amount=donationAmount --dateTime=DateAndTimeOfDonation
  6. To add charities from a CSV file:
    php index.php --controller=Csv --method=upload --filepath=Filepath

🎓 Authors

Modestas Juška: Github.

🎭 License

Distributed under the MIT license.

About

This is a simple PHP CLI APP designed to track donations, enables log donations to specific charities.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages