azate/laravel-telegram-login-auth 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

azate/laravel-telegram-login-auth

最新稳定版本:v2.5.0

Composer 安装命令:

composer require azate/laravel-telegram-login-auth

包简介

Laravel Telegram Login Auth

README 文档

README

License Latest Stable Version Total Downloads

This package is a Laravel service provider which provides support for Laravel Login and is very easy to integrate with any project that requires Telegram authentication.

Installation

Require this package with composer.

composer require azate/laravel-telegram-login-auth

Laravel >=5.5 uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider.

Copy the package config to your local config with the publish command:

php artisan vendor:publish --provider="Azate\LaravelTelegramLoginAuth\Providers\LaravelServiceProvider" --tag=config

Usage example

Setup information Telegram Login Widget

Not detailed errors

// app/Http/Controllers/AuthController.php namespace App\Http\Controllers; // ... use Azate\LaravelTelegramLoginAuth\TelegramLoginAuth; use Illuminate\Http\Request; // ... public function handleTelegramCallback(TelegramLoginAuth $telegramLoginAuth, Request $request) { if ($user = $telegramLoginAuth->validate($request)) { // ... } // ... }

With detailed errors

// app/Http/Controllers/AuthController.php namespace App\Http\Controllers; // ... use Azate\LaravelTelegramLoginAuth\Contracts\Telegram\NotAllRequiredAttributesException; use Azate\LaravelTelegramLoginAuth\Contracts\Validation\Rules\ResponseOutdatedException; use Azate\LaravelTelegramLoginAuth\Contracts\Validation\Rules\SignatureException; use Azate\LaravelTelegramLoginAuth\TelegramLoginAuth; use Illuminate\Http\Request; // ... public function handleTelegramCallback(TelegramLoginAuth $telegramLoginAuth, Request $request) { try { $user = $telegramLoginAuth->validateWithError($request); } catch(NotAllRequiredAttributesException $e) { // ... } catch(SignatureException $e) { // ... } catch(ResponseOutdatedException $e) { // ... } catch(Exception $e) { // ... } // ... }

统计信息

  • 总下载量: 16.85k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 36
  • 点击次数: 2
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 36
  • Watchers: 2
  • Forks: 14
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固