PHPackages                             e4se/laravel-telegram-oidc - 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. e4se/laravel-telegram-oidc

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

e4se/laravel-telegram-oidc
==========================

OpenID Telegram Connect OAuth2 Provider for Laravel Socialite

v1.0.0(2mo ago)111MITPHPPHP ^8.1

Since Mar 3Pushed 2mo agoCompare

[ Source](https://github.com/e4se/laravel-telegram-oidc)[ Packagist](https://packagist.org/packages/e4se/laravel-telegram-oidc)[ Docs](https://github.com/e4se/laravel-telegram-oidc)[ RSS](/packages/e4se-laravel-telegram-oidc/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (4)Versions (8)Used By (0)

OpenID Telegram Connect (OIDC) Provider for Laravel Socialite
=============================================================

[](#openid-telegram-connect-oidc-provider-for-laravel-socialite)

[![Laravel Support: v9, v10, v11, v12](https://camo.githubusercontent.com/98eead3124e6bdece061a21911ea0201c7e1e8d84d14cb19d0a663f833cdcca9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c253230537570706f72742d76392532432532307631302532432532307631312532432532307631322d626c7565)](https://camo.githubusercontent.com/98eead3124e6bdece061a21911ea0201c7e1e8d84d14cb19d0a663f833cdcca9/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c61726176656c253230537570706f72742d76392532432532307631302532432532307631312532432532307631322d626c7565) [![PHP Support: 8.1, 8.2, 8.3](https://camo.githubusercontent.com/7446a90723f3f06194bc686845a81275f2a55230681af9c10579574b5aed418c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f504850253230537570706f72742d382e31253243253230382e32253243253230382e332d626c7565)](https://camo.githubusercontent.com/7446a90723f3f06194bc686845a81275f2a55230681af9c10579574b5aed418c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f504850253230537570706f72742d382e31253243253230382e32253243253230382e332d626c7565)

Installation &amp; Basic Usage
------------------------------

[](#installation--basic-usage)

```
composer require e4se/laravel-telegram-oidc
```

Please see the [Base Installation Guide](https://socialiteproviders.com/usage/), then follow the provider specific instructions below.

### Add configuration to `config/services.php`

[](#add-configuration-to-configservicesphp)

```
'telegram-oidc' => [
    'client_id' => env('TELEGRAM_OIDC_CLIENT_ID'),
    'client_secret' => env('TELEGRAM_OIDC_CLIENT_SECRET'),
    'redirect' => env('TELEGRAM_OIDC_REDIRECT_URI')
],
```

### Add provider event listener

[](#add-provider-event-listener)

Configure the package's listener to listen for `SocialiteWasCalled` events.

#### Laravel 11+

[](#laravel-11)

In Laravel 11, the default `EventServiceProvider` provider was removed. Instead, add the listener using the `listen` method on the `Event` facade, in your `AppServiceProvider` `boot` method.

```
Event::listen(function (\SocialiteProviders\Manager\SocialiteWasCalled $event) {
    $event->extendSocialite('telegram-oidc', \SocialiteProviders\TelegramOIDC\Provider::class);
});
```

#### Laravel 10 or below

[](#laravel-10-or-below)

Add the event to your listen\[\] array in `app/Providers/EventServiceProvider`. See the [Base Installation Guide](https://socialiteproviders.com/usage/) for detailed instructions.

```
protected $listen = [
    \SocialiteProviders\Manager\SocialiteWasCalled::class => [
        // ... other providers
        \SocialiteProviders\TelegramOIDC\TelegramOIDCExtendSocialite::class.'@handle',
    ],
];
```

### Usage

[](#usage)

You should now be able to use the provider like you would regularly use Socialite (assuming you have the facade installed):

```
return Socialite::driver('telegram-oidc')->redirect();
```

### Returned User fields

[](#returned-user-fields)

- `id`
- `name`
- `nickname`
- `avatar`

More fields are available under the `user` subkey:

```
$user = Socialite::driver('telegram-oidc')->user();

$phone_number = $user->user['phone_number'];
```

### Customizing the scopes

[](#customizing-the-scopes)

You may extend the default scopes (`openid profile`) by adding a `scopes` option to your OIDC service configuration and separate multiple scopes with a space:

```
'telegram-oidc' => [
    'client_id' => env('TELEGRAM_OIDC_CLIENT_ID'),
    'client_secret' => env('TELEGRAM_OIDC_CLIENT_SECRET'),
    'redirect' => env('TELEGRAM_OIDC_REDIRECT_URI'),

    'scopes' => 'phone',
    // or
    'scopes' => env('TELEGRAM_OIDC_SCOPES'),
],
```

---

Based on the work of [Kovah](https://github.com/Kovah)

###  Health Score

39

—

LowBetter than 86% of packages

Maintenance86

Actively maintained with recent releases

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity47

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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.

###  Release Activity

Cadence

Every ~0 days

Total

7

Last Release

70d ago

Major Versions

v0.0.6 → v1.0.02026-03-03

### Community

Maintainers

![](https://www.gravatar.com/avatar/8a8fa65da1bef32fb72fbfadaf2b81c570aefdcb7810f7b567b5167424fc2506?d=identicon)[e4se](/maintainers/e4se)

---

Top Contributors

[![e4se](https://avatars.githubusercontent.com/u/20152014?v=4)](https://github.com/e4se "e4se (9 commits)")

---

Tags

laravelprovideroauthsocialitetelegramoidc

### Embed Badge

![Health badge](/badges/e4se-laravel-telegram-oidc/health.svg)

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

###  Alternatives

[kovah/laravel-socialite-oidc

OpenID Connect OAuth2 Provider for Laravel Socialite

2073.7k](/packages/kovah-laravel-socialite-oidc)[socialiteproviders/microsoft

Microsoft OAuth2 Provider for Laravel Socialite

326.1M13](/packages/socialiteproviders-microsoft)[socialiteproviders/apple

Apple OAuth2 Provider for Laravel Socialite

618.4M8](/packages/socialiteproviders-apple)[socialiteproviders/instagram

Instagram OAuth2 Provider for Laravel Socialite

421.9M5](/packages/socialiteproviders-instagram)[socialiteproviders/kakao

Kakao OAuth2 Provider for Laravel Socialite

10484.7k4](/packages/socialiteproviders-kakao)

PHPackages © 2026

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