# Free Login System PHP MySQL with Google OAuth & OTP

> Free Login System PHP MySQL with Google OAuth & OTP is a self-hosted PHP 8 + MySQL web application, sold with complete source code by Rameez Scripts. Free login system in PHP & MySQL: Google OAuth sign-in, OTP email verification, forgot password, CSRF, rate limits and admin dashboard. Source code + video.

- Product page: https://rameezscripts.com/source-code/php-login-signup-google-oauth-smtp
- Video demo: https://www.youtube.com/watch?v=BtZ5s3Qrtn4
- Category: Login & Authentication
- Stack: PHP 8 + MySQL (self-hosted)
- File code: EP1
- Version: 1.0
- Price: Free download (free account required)
- Seller: Rameez Scripts (https://rameezscripts.com)

## What it does

The authentication layer every PHP project needs, written without Composer and without a single external library. Login, signup, Google OAuth, OTP email, password reset, an admin dashboard — drop it in and start building the thing you actually wanted to build. Two ways in Username and password, or Sign in with Google through OAuth 2.0 — both routes landing in the same account. The Google setup is the part that usually stalls people, so a step-by-step guide covers creating the credentials and the redirect URI properly. A remember-me token keeps a user signed in for thirty days. Email with no PHPMailer SMTP is implemented in pure PHP. No Composer, no vendor folder, nothing to install on a shared host that will not let you run a package manager. It drives OTP verification at signup and OTP password reset, and there is an SMTP settings page with a test-email button so you can confirm delivery before going live. Built to survive the internet Every form carries CSRF protection, login attempts are rate-limited against brute force, and sessions are managed with a force-logout that ends a user's session from the admin side. These are the parts a tutorial login system leaves out and a real one cannot. The admin side A dashboard with statistics, full user management, in-app notifications, database backup and restore, maintenance mode, custom theme colours and site branding — with a responsive sidebar and mobile menu. Use it as a finished admin base or as the front door to your own project.

## Features

- Login and signup with username and password
- Google OAuth 2.0 login and signup
- Pure PHP SMTP email with no PHPMailer
- OTP email verification
- Forgot password with OTP reset
- Remember me with 30-day token
- CSRF protection on every form
- Rate-limited login attempts
- Admin dashboard with stats
- User management CRUD
- Session management and force logout
- In-app notification system
- Database backup and restore
- Maintenance mode
- Custom theme colours
- Site branding settings
- SMTP setup page with test email
- Step-by-step Google OAuth setup guide
- Responsive sidebar and mobile menu
- No Composer and no external libraries

## Requirements

- PHP 8 or later with MySQL or MariaDB
- Any shared hosting, cPanel or local XAMPP setup — no Composer required
- SMTP credentials for OTP and notification emails
- Google OAuth credentials for Sign in with Google (optional)
- Run setup.php once to build the database

## What's included

- Complete PHP and MySQL source code with no external libraries
- Login and signup with username, password and Google OAuth 2.0
- Pure-PHP SMTP mailer — no PHPMailer, no Composer
- OTP email verification and OTP password reset
- Remember-me tokens lasting 30 days
- CSRF protection and login rate limiting
- Admin dashboard with statistics and user management
- Session management with force logout
- In-app notifications, backup and restore, maintenance mode
- Theme colours, site branding and SMTP test-email page
- Step-by-step Google OAuth setup guide
- Step-by-step video walkthrough of the full build
- Free support from the developer

## FAQ

### Do I need Composer or PHPMailer?

No. SMTP is written in pure PHP with no external libraries, which is exactly what you want on shared hosting where installing packages is awkward.

### How hard is the Google login to set up?

It is the usual sticking point, so a step-by-step guide covers creating the OAuth credentials and setting the redirect URI correctly.

### Is it safe enough for a live site?

Every form carries CSRF protection, login attempts are rate-limited against brute force, and sessions can be force-logged-out from the admin side.

### How does password reset work?

By OTP. A code is emailed to the registered address and verified before a new password can be set — no reset-link token table to maintain.

### Can I check my email settings before going live?

Yes, the SMTP settings page has a test-email button, so delivery is confirmed before users depend on it.

### Can I use it as the base for my own project?

That is the intent. Authentication, roles, the admin dashboard and the email layer are the parts you would otherwise rewrite for every new PHP build.

### What is How to Build Free PHP Login System with Google OAuth - EP1?

How to Build Free PHP Login System with Google OAuth - EP1 is a ready-made Login & Authentication — a self-hosted PHP 8 + MySQL web application, sold with complete source code by Rameez Scripts (file code EP1). The authentication layer every PHP project needs, written without Composer and without a single external library. Login, signup, Google OAuth, OTP email, password reset, an admin dashboard — drop it in and start buildin…

### How much does How to Build Free PHP Login System with Google OAuth - EP1 cost?

How to Build Free PHP Login System with Google OAuth - EP1 is a free download — unlock it on this page at no cost. No card and no payment is needed.

### How do I receive How to Build Free PHP Login System with Google OAuth - EP1 after verification?

Once verified, the download button on this page unlocks and you receive the PHP files with the SQL database as a zip, plus the setup guide.

### I subscribed, but the verification fails — what now?

Verify with the same Google account you used to subscribe on YouTube. If it still fails, message us on WhatsApp and we will unlock it for you.

### Do I get the complete source code of How to Build Free PHP Login System with Google OAuth - EP1?

Yes. You receive the complete, unencrypted source code of How to Build Free PHP Login System with Google OAuth - EP1, so you can host it yourself, modify any part of it and extend it for your own business.

### Is there a live demo of How to Build Free PHP Login System with Google OAuth - EP1?

Yes — a full video demo of How to Build Free PHP Login System with Google OAuth - EP1 is on this page, walking through every feature and screen before you buy.

### Does How to Build Free PHP Login System with Google OAuth - EP1 include support after purchase?

Yes — every purchase includes 14 days of direct WhatsApp setup support from the developer, covering setup, installation errors and questions about the code.

### Can How to Build Free PHP Login System with Google OAuth - EP1 be customized for my business?

Yes. Rameez Scripts builds custom changes on top of How to Build Free PHP Login System with Google OAuth - EP1 — extra modules, your branding, integrations and reports — as a separate custom development service arranged on WhatsApp.

### How is How to Build Free PHP Login System with Google OAuth - EP1 delivered after payment?

As soon as your payment is confirmed, the source code and setup video of How to Build Free PHP Login System with Google OAuth - EP1 are delivered to your account and shared with you on WhatsApp.

## Contact

- WhatsApp: https://wa.me/923435347417
- Email: contact@rameezscripts.com
- Full catalog for AI assistants: https://rameezscripts.com/llms-full.txt
