PHPackages                             kullar84/mobileid - 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. kullar84/mobileid

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

kullar84/mobileid
=================

Estonian MobileID identity provider for laravel

0.2(8y ago)0241MITPHPPHP &gt;=7.0

Since Jan 16Pushed 8y ago1 watchersCompare

[ Source](https://github.com/kullar84/mobileid)[ Packagist](https://packagist.org/packages/kullar84/mobileid)[ RSS](/packages/kullar84-mobileid/feed)WikiDiscussions master Synced 2w ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (0)

MobileID
========

[](#mobileid)

Laravel mobile ID authentication

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

[](#installation)

```
composer require kullar84/mobileid

```

The package is now installed. If you are using laravel version &lt; 5.5, add the following line in your `config/app.php` providers section:

```
kullar84\mobileid\MobileIDServiceProvider::class,

```

Create new middleware group to Kernel.php

```
protected $middlewareGroups = [
        'session' => [
            \Illuminate\Session\Middleware\StartSession::class,
        ],
    ];

```

Add new routes that uses this middleware

```
Route::group(['middleware' => 'session'], function () {
    Route::post('mlogin', 'AuthController@mlogin')->name('mlogin');
    Route::post('domlogin', 'AuthController@doMLogin')->name('domlogin');
});

```

Create required methods

```
use kullar84\mobileid\MobileIDAuthenticate;

protected function mlogin(Request $request)
{
	$this->validate(
		$request, [
			'phone' => 'required|numeric|exists:users,phone',
		]
	);

	$phone = $request->input('phone');

	$auth = new MobileIDAuthenticate();

	$response = $auth->startAuth($phone);

	return response()->json($response);
}

protected function doMLogin(Request $request)
{
	//https://www.id.ee/?id=36373
	$auth = new MobileIDAuthenticate();
	$response = $auth->checkAuthStatus();

	if ($response->isError()) {
		return response()->json(['error' => true, 'message' => $response->error]);
	} elseif ($response->isPending()) {
		return response()->json(['pending' => true, 'message' => 'Please wait! You will be redirected shortly']);
	} elseif ($response->isSuccess()) {
		$phone = $request->input('phone');

		$user = User::findUserByPhone($phone);

		if ($user !== null) {
			$token = $user->createToken('Token')->accessToken;

			return $this->respondWithToken($token);
		}
	}

	return response()->json(['message' => 'Unauthorized'], 422);
}

```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity49

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

2

Last Release

3088d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/195263?v=4)[Kullar Kert](/maintainers/kullarkert)[@kullarkert](https://github.com/kullarkert)

---

Top Contributors

[![kullarkert](https://avatars.githubusercontent.com/u/195263?v=4)](https://github.com/kullarkert "kullarkert (5 commits)")

---

Tags

laravellaravel-mobilemobileidlaravelauthidentitydigidocservicemobiilIDMobileID

### Embed Badge

![Health badge](/badges/kullar84-mobileid/health.svg)

```
[![Health](https://phpackages.com/badges/kullar84-mobileid/health.svg)](https://phpackages.com/packages/kullar84-mobileid)
```

###  Alternatives

[orchestra/auth

Auth Component for Orchestra Platform

22108.6k3](/packages/orchestra-auth)[codebot/entrust

This package provides a flexible way to add Role-based Permissions to Laravel

15100.1k](/packages/codebot-entrust)[ingria/laravel-x509-auth

Laravel 5 Client Certificate auth middleware

375.6k](/packages/ingria-laravel-x509-auth)[setiawanhu/sanctum-auth

Laravel package for generating user authentication feature using Laravel Sanctum

132.8k](/packages/setiawanhu-sanctum-auth)

PHPackages © 2026

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