https://github.com/nicolaeciobanuu/php-auth
Simple authentification with PHP and MySQL
https://github.com/nicolaeciobanuu/php-auth
auth authentication login mysql php session
Last synced: 3 months ago
JSON representation
Simple authentification with PHP and MySQL
- Host: GitHub
- URL: https://github.com/nicolaeciobanuu/php-auth
- Owner: nicolaeciobanuu
- Created: 2024-08-28T11:31:21.000Z (9 months ago)
- Default Branch: master
- Last Pushed: 2024-08-29T08:14:17.000Z (9 months ago)
- Last Synced: 2025-01-02T00:42:15.984Z (5 months ago)
- Topics: auth, authentication, login, mysql, php, session
- Language: PHP
- Homepage:
- Size: 3.91 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
First you need to create a database with the **users** table.
CREATE DATABASE php-auth
Then run the following statement:
CREATE TABLE users (
id INT AUTO_INCREMENT PRIMARY KEY,
email VARCHAR(255) NOT NULL UNIQUE,
password VARCHAR(255) NOT NULL
);Start the php app in the built-in web server:
php -S localhost:3000