This is a PHP-based web application for a fictional shop called "Toilet Shop". The application includes authentication, database interaction, and a basic UI using the Bulma CSS framework.
HtmlDesign/
: Contains the initial HTML design of the application, including CSS and JavaScript files.src/
: Contains the PHP source code for the application.auth/
: Contains the authentication logic, including login, logout, and registration.components/
: Contains reusable PHP components for the UI.db/
: Contains the database connection and query logic.
.idea/
: Contains configuration files for the JetBrains IDE.
- Clone the repository.
- Set up a local PHP server.
- Set up a local SQL server and import the database schema.
- Update the database connection details in
src/db/Database.php
. - Start the PHP server and navigate to
src/index.php
in your web browser.
- Use the
Auth\login
function to log in a user. - Use the
Auth\logout
function to log out a user. - Use the
Database
class to interact with the database.
Contributions are welcome. Please open an issue or submit a pull request.
This project is licensed under the MIT License.