A simple CRUD web project for user management.
- XAMPP (Apache and MySQL)
- PHP (version 7.0 or higher)
- Composer
Leave XAMPP up and running after its installation.
The database needs to be manually set up for this project.
-
Access
phpMyAdminthrough theXAMPPcontrol panel and select the SQL tab. -
Copy the contents of the
ddl.sqlfile located in the root of this project and paste it into the query box, then click onExecute. -
Rename the
.env.examplefile to.envand set your own values for the variables if required.
Download the project by visiting the releases page of this repository and unzip the file, or you could also simply clone it.
To work with XAMPP, ensure the project is located in the XAMPP installation folder, e.g. C:\xampp\htdocs.
Inside the project folder, install the required dependencies using Composer.
composer installAccess the web page through http://localhost/php-user-management. You should see the homepage below if the installation was done correctly.
Click on the NEW USER button. A modal will appear asking for user data input.
You must fill the form with the user name, e-mail, phone and a photo, which must be uploaded.
The photo must be a .JPG, .JPEG or .PNG file, other file extensions are not supported.
After clicking on Save changes you'll see an HTML alert box displaying whether the request was successfull or not.
A successful request will refresh the page, and the newly added user will appear.
You can also update or delete the user shown on the homepage. Click on the yellow 'U' button to update or the red 'D' button to delete.
Made with 💜 by Lucas da Silveira 👋



