A simple yet secure login and signup system built with PHP and MariaDB.
Find a file Use this template
Marco 85eaeca21b feat(router): add paramater support
for shit like profile/user
2025-12-31 16:13:56 +01:00
src feat(router): add paramater support 2025-12-31 16:13:56 +01:00
.env.example update example 2025-12-26 20:26:49 +01:00
.gitattributes Initial commit 2025-03-09 18:44:23 +01:00
.gitignore update: styling 2025-12-26 21:03:36 +01:00
compile.css update: styling 2025-12-26 21:03:36 +01:00
composer.json feat: create register page 2025-03-10 14:03:43 +01:00
database.sql wip 2025-12-27 19:46:03 +01:00
docker-compose.yml fix(docker): seperate db for prod profile 2025-12-27 19:27:24 +01:00
Dockerfile Update Dockerfile 2025-12-25 15:49:55 +00:00
package.json update: styling 2025-12-26 21:03:36 +01:00
README.md update(docker): add dev/prod profiles 2025-12-27 19:16:40 +01:00

PHP Auth System

A simple yet secure login and signup system built with PHP and MySQL.

Features

  • User registration & login
  • Password hashing for security
  • Session management

Tech Stack:

Docker MariaDB PHP JavaScript

Installation

  1. Clone the repository

    git clone https://github.com/msh31/php-auth-system.git
    cd php-auth-system
    
  2. Set up environment variables

    • Create a .env file in the root directory and add your database credentials:
      DB_HOST=localhost
      DB_USER=your_username
      DB_PASS=your_password
      DB_NAME=php_auth_db
      
    • Install composer packages:
      composer install
      
  3. Set up the database

    • Import the database.sql file into your MySQL database.
  4. Run the project

    • Using Docker:
        # dev
        docker compose --profile dev up -d
        # prod
        docker compose --profile prod up -d
      
    • Open http://localhost:6969 in your browser.

Contributing

Pull requests are welcome! Feel free to fork this repository and improve upon it.

License

This project is licensed under the MIT License.


Made with ❤️ by Marco