{"id":25252861,"url":"https://github.com/zaber-dev/basic-web-auth","last_synced_at":"2025-07-10T17:32:24.082Z","repository":{"id":275608824,"uuid":"926607035","full_name":"zaber-dev/Basic-Web-Auth","owner":"zaber-dev","description":"This project is a basic web authentication system built with PHP. It includes user registration, login, and logout functionalities, as well as a protected dashboard for authenticated users.","archived":false,"fork":false,"pushed_at":"2025-02-05T08:30:35.000Z","size":9,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-05T22:16:54.952Z","etag":null,"topics":["auth","authentication","github-codespaces","learn","mysql","mysql-database","php","student-vscode","web-auth","web-authentication","webapp","website","website-template"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zaber-dev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-02-03T14:59:07.000Z","updated_at":"2025-02-17T12:12:44.000Z","dependencies_parsed_at":"2025-02-03T16:37:37.093Z","dependency_job_id":null,"html_url":"https://github.com/zaber-dev/Basic-Web-Auth","commit_stats":null,"previous_names":["zaber-dev/basic-web-auth"],"tags_count":0,"template":true,"template_full_name":"github/codespaces-blank","purl":"pkg:github/zaber-dev/Basic-Web-Auth","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaber-dev%2FBasic-Web-Auth","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaber-dev%2FBasic-Web-Auth/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaber-dev%2FBasic-Web-Auth/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaber-dev%2FBasic-Web-Auth/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zaber-dev","download_url":"https://codeload.github.com/zaber-dev/Basic-Web-Auth/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zaber-dev%2FBasic-Web-Auth/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264619354,"owners_count":23638439,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["auth","authentication","github-codespaces","learn","mysql","mysql-database","php","student-vscode","web-auth","web-authentication","webapp","website","website-template"],"created_at":"2025-02-12T04:18:55.865Z","updated_at":"2025-07-10T17:32:24.060Z","avatar_url":"https://github.com/zaber-dev.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Basic Web Auth\n\nThis project is a basic web authentication system built with PHP. It includes user registration, login, and logout functionalities, as well as a protected dashboard for authenticated users.\n\n## Features\n\n- User Registration\n- User Login\n- User Logout\n- Protected Dashboard\n- Error Handling\n\n## File Structure\n\n```\n/Basic Web Auth\n├── auth\n│   ├── login.php\n│   ├── logout.php\n│   ├── register.php\n├── template\n│   ├── admin\n│   │   └── dashboard.php\n│   ├── auth\n│   │   ├── login.php\n│   │   └── register.php\n│   ├── home.php\n├── .htaccess\n├── config.php\n├── index.php\n├── dashboard.php\n└── README.md\n```\n\n## Setup\n\n1. Clone the repository to your local machine.\n2. Create a MySQL database and execute the provided SQL query to create the necessary tables:\n```sql\nCREATE TABLE users (\n    id INT PRIMARY KEY AUTO_INCREMENT,\n    username VARCHAR(50) NOT NULL UNIQUE,\n    email VARCHAR(100) NOT NULL UNIQUE,\n    password VARCHAR(255) NOT NULL,\n    created_at DATETIME DEFAULT CURRENT_TIMESTAMP\n);\n```\n3. Update the `config.php` file with your database credentials.\n\n## Usage\n\n### Index Page\n\n1. Navigate to the home page: `/index.php`\n2. You will find links to login and register.\n\n### Registration\n\n1. Navigate to the registration page: `/auth/register.php`\n2. Fill in the required fields and submit the form.\n3. Proper error messages will be displayed if the username is already taken or if the passwords do not match.\n\n### Login\n\n1. Navigate to the login page: `/auth/login.php`\n2. Enter your username and password, then submit the form.\n3. Proper error messages will be displayed if the username or password is incorrect.\n\n### Dashboard\n\n1. After logging in, you will be redirected to the dashboard: `/dashboard.php`\n2. The dashboard is protected and only accessible to authenticated users.\n\n### Logout\n\n1. Click the logout link on the dashboard to end your session.\n\n## License\n\nThis project is licensed under the MIT License.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzaber-dev%2Fbasic-web-auth","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzaber-dev%2Fbasic-web-auth","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzaber-dev%2Fbasic-web-auth/lists"}