This is a simple banking application built with PHP having features for both 'Admin' and 'Customer' users. The application supports both file and database storage methods, which can be configured based on your needs.
- View All Transactions: Access a comprehensive list of all transactions made by every user in the system.
- Search Transactions by User: Search and view transactions for a specific user by using their email address.
- View All Registered Customers: Access a list of all customers registered in the system.
- Registration: Customers can create an account by providing their name, email, and password.
- Login: Customers can log in using their registered email and password.
- View Transactions: Customers can see a list of all transactions associated with their account.
- Deposit Money: Customers can deposit money into their account.
- Withdraw Money: Customers can withdraw money from their account.
- Transfer Money: Customers can transfer money to another customer by specifying the recipient's email address.
- Check Account Balance: Customers can view the current balance of their account.
- PHP 7.4 or higher
- Composer (for managing dependencies)
- A web server (e.g., Apache, Nginx) or PHP built-in server
- MySQL (if using database storage)
-
Clone the Repository:
git clone https://github.com/ahmad-cit22/bank-app-php.git cd bank-app-php -
Install Dependencies:
Make sure you have Composer installed, then run:
composer install
-
Configure the Application:
Modify the configuration settings in the
config.phpfile according to your environment:- Choose between
fileanddatabasestorage methods. - Set up database credentials if using the database method.
- Configure other application settings as needed.
- Choose between
-
Create an Admin User:
Use the CLI script to create a new admin user:
php create_admin/create_admin.php
-
Run the Application:
You can run the application using a web server or PHP's built-in server:
php -S localhost:8000 -t public/
The application will be accessible at
http://localhost:8000.
If you'd like to contribute, please fork the repository and use a feature branch. Pull requests are warmly welcome.
Thank you.