Fully functioning PHP web app that Supports CRUD operations on employees.
View Demo
·
Report Bug
·
Request Feature
Table of Contents
my.employees.webm
Fully functioning web app that Supports:
- Registration.
- Authentication.
- CRUD operations on employees.
- Search for an employee.
- Password reset.
- Validation and sanitization of all inputs before inserting to the database...
- MySQL
- PHP 7
- Bootsrap 5
- JavaScript
- HTML5
- CSS3
- First of all make sure your have PHP 7+, MySQL installed and running
- clone the repo using
git clone https://github.com/youssef-imlyhen/Employees-Manager.git
- Run these SQL commands or you can create the database and the tables manually using PhpMyAdmin.
/* create the database */
CREATE DATABASE cruddb;
/* create users tables */
CREATE TABLE `users` ( `id` INT NOT NULL AUTO_INCREMENT , `username` VARCHAR(100) NOT NULL , `password` VARCHAR(100) NOT NULL , `created_at` DATE NOT NULL DEFAULT CURRENT_TIMESTAMP , PRIMARY KEY (`id`)) ENGINE = InnoDB;
/* create employeesList table */
CREATE TABLE `employeesList` ( `id` INT NOT NULL AUTO_INCREMENT , `name` VARCHAR(100) NOT NULL , `email` VARCHAR(100) NOT NULL , `phone` VARCHAR(15) NOT NULL , `job` VARCHAR(100) NOT NULL , PRIMARY KEY (`id`)) ENGINE = InnoDB;
- Open config.php and change
DB_SERVER
,DB_USERNAME
,DB_PASSWORD
,DB_NAME
with the details of your database. - Have fun.
- This project started after I learned PHP basics, and I wanted to do something more advanced to challenge myself. I took a static front-end app that I built as part of a great bootstrap 5 Udemy course. And started building on that by implementing new features like searching, input validation, CRUD operations using AJAX on the front end, and all of the back-end functionalities.
Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.
If you have a suggestion that would make this better, please fork the repo and create a pull request. You can also simply open an issue with the tag "enhancement". Don't forget to give the project a star! Thanks again!
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature
) - Commit your Changes (
git commit -m 'Add some AmazingFeature'
) - Push to the Branch (
git push origin feature/AmazingFeature
) - Open a Pull Request
Distributed under the MIT License.
Project Link: https://github.com/youssef-imlyhen/Employees-Manager
Linkedin: https://linkedin.com/in/youssef-imlyhen