Skip to content

bsmaceira/php-user-registry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

PHP User Registry

A simple and secure user registration system written in PHP using PDO.

Features

  • Secure password hashing
  • PDO prepared statements
  • Duplicate username checking
  • Error handling and logging
  • Organized repository structure

Setup

  1. Clone the repository

  2. Create your database and update config/config.php with your credentials.

  3. Run the following SQL to create the users table:

    CREATE TABLE users (
        id INT AUTO_INCREMENT PRIMARY KEY,
        username VARCHAR(255) UNIQUE NOT NULL,
        password VARCHAR(255) NOT NULL
    );
  4. Point your web server to the public/ directory.

Security Tips

  • Always use HTTPS in production.
  • Change default credentials.
  • Consider implementing CSRF protection.

About

user registry template structure with some files

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published