A simple yet secure login and signup system built with PHP and MariaDB.
|
|
||
|---|---|---|
| src | ||
| .env.example | ||
| .gitattributes | ||
| .gitignore | ||
| compile.css | ||
| composer.json | ||
| database.sql | ||
| docker-compose.yml | ||
| Dockerfile | ||
| package.json | ||
| README.md | ||
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:
Installation
-
Clone the repository
git clone https://github.com/msh31/php-auth-system.git cd php-auth-system -
Set up environment variables
- Create a
.envfile 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
- Create a
-
Set up the database
- Import the
database.sqlfile into your MySQL database.
- Import the
-
Run the project
- Using Docker:
# dev docker compose --profile dev up -d # prod docker compose --profile prod up -d - Open
http://localhost:6969in your browser.
- Using Docker:
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