Browse by tag

session

Source code and side project notes under the same tag

All Source code Side project notes
1 results

Gmail / Google OAuth 2.0 登录演示(PHP 5.6 ~ 8.x) v1.0

演示如何把「使用 Google 账号登录」接到自己的 PHP 站点。代码刻意保持精简,便于复制到现有项目的控制器或路由中。提供 oauth_start / oauth_callback / logout 最小闭环与可复用封装,Session 中保存规范化用户信息。配置与路径建议写清,减少 redirect_uri_mismatch 类问题。

2026-06-10 2 0 0
Open source
View screenshots