PHPackages                             akxz/laravel-telegram-auth - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. akxz/laravel-telegram-auth

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

akxz/laravel-telegram-auth
==========================

Laravel Telegram Login Auth

014PHP

Since Sep 29Pushed 5y agoCompare

[ Source](https://github.com/akxz/laravel-telegram-auth)[ Packagist](https://packagist.org/packages/akxz/laravel-telegram-auth)[ RSS](/packages/akxz-laravel-telegram-auth/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Telegram Login for Laravel 5-8
==============================

[](#telegram-login-for-laravel-5-8)

[![License](https://camo.githubusercontent.com/f44750d0652b508cf21ec17b625ea7baf8e566bece2b919d7cf75e3c9f1cef1d/68747470733a2f2f706f7365722e707567782e6f72672f617a6174652f6c61726176656c2d74656c656772616d2d6c6f67696e2d617574682f6c6963656e7365)](https://packagist.org/packages/azate/laravel-telegram-login-auth)[![Latest Stable Version](https://camo.githubusercontent.com/f66ba8a1cdf276c9c716df0cfff729b484a954ec086bffc589d744996300da7e/68747470733a2f2f706f7365722e707567782e6f72672f617a6174652f6c61726176656c2d74656c656772616d2d6c6f67696e2d617574682f762f737461626c65)](https://packagist.org/packages/azate/laravel-telegram-login-auth)[![Total Downloads](https://camo.githubusercontent.com/37dcf0369171a87a09de0f5f0a236e183882633f53af35b7b0a2c94ce0acba96/68747470733a2f2f706f7365722e707567782e6f72672f617a6174652f6c61726176656c2d74656c656772616d2d6c6f67696e2d617574682f646f776e6c6f616473)](https://packagist.org/packages/azate/laravel-telegram-login-auth)

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

Installation
------------

[](#installation)

Require this package with composer.

```
composer require akxz/laravel-telegram-login-auth
```

Laravel &gt;=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="Akxz\LaravelTelegramLoginAuth\TelegramLoginServiceProvider"
```

Usage example
-------------

[](#usage-example)

Setup information [Telegram Login Widget](https://core.telegram.org/widgets/login)

In `routes/web.php`: for Laravel 5-7:

```
Route::get('auth/telegram/callback', 'AuthController@handleTelegramCallback')->name('auth.telegram.handle');
```

for Laravel 8:

```
use App\Http\Controllers\AuthController;

Route::get('auth/telegram/callback', [AuthController::class, 'handleTelegramCallback']);
```

In `AuthController`:

```
namespace App\Http\Controllers;

use Akxz\LaravelTelegramLoginAuth\TelegramLoginAuth;

class AuthController extends Controller
{
    /**
     * @var TelegramLoginAuth
     */
    protected $telegram;

    /**
     * AuthController constructor.
     *
     * @param TelegramLoginAuth $telegram
     */
    public function __construct(TelegramLoginAuth $telegram)
    {
        $this->telegram = $telegram;
    }

    /**
     * Get user info and log in (hypothetically)
     *
     * @return \Illuminate\Routing\Redirector|\Illuminate\Http\RedirectResponse
     */
    public function handleTelegramCallback()
    {
        if ($this->telegram->validate()) {
            $user = $this->telegram->user();

            //
        }

        return redirect('/');
    }
}
```

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity32

Early-stage or recently created project

 Bus Factor1

Top contributor holds 52.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/48616107?v=4)[akxz](/maintainers/akxz)[@akxz](https://github.com/akxz)

---

Top Contributors

[![jxri](https://avatars.githubusercontent.com/u/39219750?v=4)](https://github.com/jxri "jxri (9 commits)")[![akxz](https://avatars.githubusercontent.com/u/48616107?v=4)](https://github.com/akxz "akxz (8 commits)")

### Embed Badge

![Health badge](/badges/akxz-laravel-telegram-auth/health.svg)

```
[![Health](https://phpackages.com/badges/akxz-laravel-telegram-auth/health.svg)](https://phpackages.com/packages/akxz-laravel-telegram-auth)
```

###  Alternatives

[kartik-v/yii2-password

Useful password strength validation utilities for Yii Framework 2.0

761.3M17](/packages/kartik-v-yii2-password)[vitalybaev/laravel5-dkim

Laravel 5/6 package for signing outgoing messages with DKIM.

3163.1k](/packages/vitalybaev-laravel5-dkim)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
