azate/laravel-telegram-login-auth

Laravel Telegram Login Auth
22,803 37
Install
composer require azate/laravel-telegram-login-auth
Latest Version:v2.6.0
PHP:^8
Laravel:9 – 13
Older releases:5 – 8
License:MIT
Last Updated:Apr 12, 2026
Links: GitHub  ·  Packagist
Maintainer: mp6j8i

Telegram Login for Laravel

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) {
        // ...
    }

    // ...
}

Related Packages

lartie/telegram-bot-maker

Telegram Bot Maker for Laravel

6 1
masim-appcrates/laravel-authentication

My Custome Laravel Authentication

6 0
laravel/fortify

Backend controllers and scaffolding for Laravel authentication.

69,125,250 1,760
laravel/breeze

Minimal Laravel authentication scaffolding with Blade and Tailwind.

43,967,044 3,058
devdojo/auth

The auth package to make authentication in your laravel applications easy to use...

266,014 622

Version History

Version Released PHP Laravel License
v2.6.0 ^8 ^9 || ^10 || ^11 || ^12 || ^13 MIT
v2.5.0 ^8 ^9 || ^10 || ^11 || ^12 MIT
v2.4.0 ^8 ^9 || ^10 || ^11 MIT
v2.3.0 ^8 ^9 || ^10 MIT
v2.2.0 ^7.3 || ^7.4 || ^8 ^8 || ^9 MIT