承接 markocupic/contao-github-login 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

markocupic/contao-github-login

Composer 安装命令:

composer require markocupic/contao-github-login

包简介

Contao GitHub Login

README 文档

README

Logo Marko Cupic

Contao GitHub Login

This extension adds a GitHub login button to Contao, both in the frontend and in the backend. Before/after installation you have to register a GitHub App and save the client_id and client_secret in your .env file. To activate or deactivate the application, the configuration file config.yaml must be edited under config/config.yaml.

Frontend Module

To display the login button in the frontend, create a member login module and select the mod_login_github template.

Installation

composer require markocupic/contao-github-login

Configuration

# config/config.yaml
markocupic_contao_oauth2_client:
    disable_contao_core_backend_login: false  # Disable original Contao backend login
    enable_csrf_token_check: true

markocupic_contao_github_login:
    contao_oauth2_clients:
        github_backend:
            enable_login: true
            client_id: '%env(CONTAO_GITHUB_LOGIN_CLIENT_ID)%'
            client_secret: '%env(CONTAO_GITHUB_LOGIN_CLIENT_SECRET)%'

        github_frontend:
            enable_login: true
            client_id: '%env(CONTAO_GITHUB_LOGIN_CLIENT_ID)%'
            client_secret: '%env(CONTAO_GITHUB_LOGIN_CLIENT_SECRET)%'
# .env
CONTAO_GITHUB_LOGIN_CLIENT_ID=6337hdhks7d62277sd
CONTAO_GITHUB_LOGIN_CLIENT_SECRET=738gdsksd893723723932023023932

Register GitHub App

  1. Log in to your GitHub Account and go to GitHub Developer Settings to enter the callback URLS and get your GitHub client_id and client_secret.
  2. Register a new GitHub App.
  3. Add a name for your GitHub app.
  4. Add the homepage URL: https://my-page.ch
  5. Add the first callback URL: https://my-page.ch/_oauth2_login/github_backend/backend for the Backend Login.
  6. Add the second callback URL: https://my-page.ch/_oauth2_login/github_frontend/frontend for the Frontend Login.
  7. Save your settings.
  8. Generate the client secret
  9. In a next step write the client_id and the client_secret to your .env file.
  10. Click Permissions & events in the navigation on the left.
  11. Open Account permissions and select Read-only access under Email addresses
Contao Backend GitHub App Settings GitHub App Permissions
Contao Backend GitHub Login GitHub App Settings GitHub App Permissions

markocupic/contao-github-login 适用场景与选型建议

markocupic/contao-github-login 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 57 次下载、GitHub Stars 达 1, 最近一次更新时间为 2023 年 12 月 29 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「oauth2」 「github」 「login」 「contao」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 markocupic/contao-github-login 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 markocupic/contao-github-login 我们能提供哪些服务?
定制开发 / 二次开发

基于 markocupic/contao-github-login 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 57
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 6
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2023-12-29