PHPackages                             aslnbxrz/myid-socialite - 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. aslnbxrz/myid-socialite

ActiveLibrary

aslnbxrz/myid-socialite
=======================

MyID provider for Laravel Socialite

128PHP

Since Sep 30Pushed 7mo agoCompare

[ Source](https://github.com/aslnbxrz/myid-socialite)[ Packagist](https://packagist.org/packages/aslnbxrz/myid-socialite)[ RSS](/packages/aslnbxrz-myid-socialite/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

MyID for Laravel Socialite
==========================

[](#myid-for-laravel-socialite)

MyID provider for [SocialiteProviders](https://github.com/SocialiteProviders/Providers).

Docs: [MyID Web SDK](https://docs.myid.uz/#/ru/websdk)

Requirements
------------

[](#requirements)

- PHP 8.1+
- Laravel 10/11+
- `laravel/socialite`
- `socialiteproviders/manager`

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

[](#installation)

```
composer require aslnbxrz/myid-socialite
```

Configuration
-------------

[](#configuration)

Add to `config/services.php`:

```
'myid' => [
    'client_id'     => env('MYID_CLIENT_ID'),
    'client_secret' => env('MYID_CLIENT_SECRET'),
    'redirect'      => env('MYID_REDIRECT_URI'),
    // Optional (defaults shown):
    'base_url'      => env('MYID_BASE_URL', 'https://myid.uz'),
    'scope'         => env('MYID_SCOPE', 'openid profile email'),
],
```

Add to your `.env`

```
MYID_CLIENT_ID=your-client-id
MYID_CLIENT_SECRET=your-client-secret
MYID_REDIRECT_URI=https://your-app.com/auth/myid/callback
# Optional:
# MYID_BASE_URL=https://myid.uz
# MYID_SCOPE="openid profile email"
```

Laravel 11+ Event Listener
--------------------------

[](#laravel-11-event-listener)

```
use Illuminate\Support\Facades\Event;
use SocialiteProviders\Manager\SocialiteWasCalled;
use Aslnbxrz\MyID\Provider;

Event::listen(function (SocialiteWasCalled $event) {
    $event->extendSocialite('myid', Provider::class);
});
```

Usage
-----

[](#usage)

```
use Laravel\Socialite\Facades\Socialite;

// Redirect to MyID
Route::get('/auth/myid/redirect', function () {
    return Socialite::driver('myid')->scopes(['openid','profile','email'])->redirect();
});

// Callback
Route::get('/auth/myid/callback', function () {
    /** @var \Aslnbxrz\MyID\MyIDUser $user */
    $user = Socialite::driver('myid')->user();

    $id    = $user->getId();
    $name  = $user->getName();
    $email = $user->getEmail();
    $phone = $user->getPhone();
});
```

Endpoints
---------

[](#endpoints)

- Authorize: `https://myid.uz/oauth/authorize`
- Token: `https://myid.uz/oauth/token`
- Userinfo: `https://myid.uz/oauth/userinfo`

---

License
-------

[](#license)

MIT

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance44

Moderate activity, may be stable

Popularity9

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity13

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/a725a0e94ad41b577a5c8741c0c771b7b473ed8300329646774062c200cdb441?d=identicon)[aslnbxrz](/maintainers/aslnbxrz)

---

Top Contributors

[![aslnbxrz](https://avatars.githubusercontent.com/u/60058750?v=4)](https://github.com/aslnbxrz "aslnbxrz (8 commits)")

### Embed Badge

![Health badge](/badges/aslnbxrz-myid-socialite/health.svg)

```
[![Health](https://phpackages.com/badges/aslnbxrz-myid-socialite/health.svg)](https://phpackages.com/packages/aslnbxrz-myid-socialite)
```

PHPackages © 2026

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