This is a simple PHP CLI APP designed to track donations, enables log donations to specific charities. Project is developed for educational purposes only.
- Installation
- Running the APP
- Use commands in VSC terminal
- Authors
- License
To get started:
- Open the folder to clone the APP:
cd YourFoldersName
- Clone the APP:
git clone https://github.com/ModJuska123/donation-app-php-cli-project
-
Run a XAMPP server (Apache and Mysql).
-
Create a
fundraiser
DB with tablescharities
(columns: id;name;email) anddonations
(columns: id;name;amount;charity_id;date). -
Create a
csv
file (columns: name;email).
- Open the APP you just cloned entering
cd YourFoldersName
. - Run the APP entering
php index.php
into the terminal.
- To view list of charities:
php index.php --controller=Charity --method=charitiesList
- To add a new charity:
php index.php --controller=Charity --method=create --name=CharityName --email=Charity@email.com
- To edit a charity:
php index.php --controller=Charity --method=update --id=CharityId --name=NewCharity --email=newCharity@gmail.com
- To delete a charity:
php index.php --controller=Charity --method=delete --id=CharityId
- To add a donation to a charity:
php index.php --controller=Donation --method=add --charityId=CharityId --name=YourName --amount=donationAmount --dateTime=DateAndTimeOfDonation
- To add charities from a CSV file:
php index.php --controller=Csv --method=upload --filepath=Filepath
Modestas Juška: Github.
Distributed under the MIT license.