PHPackages                             ijodkor/one-id - 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. ijodkor/one-id

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

ijodkor/one-id
==============

OneId OAuth package for Laravel/PHP

v1.0.5(8mo ago)0409MITPHPPHP ^8.0

Since Jan 21Pushed 8mo agoCompare

[ Source](https://github.com/ijodkor/lone-id)[ Packagist](https://packagist.org/packages/ijodkor/one-id)[ RSS](/packages/ijodkor-one-id/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (6)Dependencies (5)Versions (7)Used By (0)

OneId
=====

[](#oneid)

Yagona identifikatsiya tizimi (Single identification system)

Talablar (Requirements)
-----------------------

[](#talablar-requirements)

- PHP ^8.0
- Laravel ^10

1. O‘rnatish (Installation)
---------------------------

[](#1-ornatish-installation)

Install the package via composer:

```
composer require ijodkor/one-id
```

Sozlama faylni asosiyga chiqarish

```
php artisan vendor:publish --provider="Ijodkor\OneId\OneIdServiceProvider"
```

2. Sozlash (Setup)
------------------

[](#2-sozlash-setup)

1. Muhit o‘zgaruvchilari o‘rnatilinadi (Set environment variables)

```
ONE_ID_SSO_URL=
ONE_ID_CLIENT_ID=
ONE_ID_CLIENT_SECRET=
```

- Sozlama fayli yaratilinadi (Set Config file)

```
    /*
    |--------------------------------------------------------------------------
    | OneId Integration
    |--------------------------------------------------------------------------
    | This is the OneId package
    |
    */
    'one_id_sso_url' => env('ONE_ID_SSO_URL'),
    'one_id_client_id' => env('ONE_ID_CLIENT_ID'),
    'one_id_client_secret' => env('ONE_ID_CLIENT_SECRET'),
    'one_id_client_scope' => env('ONE_ID_CLIENT_SCOPE'),
```

3. Qo‘shimcha sozlamalar (Extra configurations)
-----------------------------------------------

[](#3-qoshimcha-sozlamalar-extra-configurations)

```
ONE_ID_CLIENT_SCOPE=test
ONE_ID_CLIENT_STATE=test
```

### 3.1 Web - for monolith website and systems

[](#31-web---for-monolith-website-and-systems)

- `php artisan one-id:web-make`
- Define following route in web.php

```
# OneId
Route::get('/one-id/access', [OneIdWebAuthController::class, 'access']);
```

### 3.2 Api - for REST api website and systems

[](#32-api---for-rest-api-website-and-systems)

- `php artisan one-id:api-make`
- Define following route in api.php

```
# OneId
Route::post('/auth/token', [OneIdAuthController::class, 'token']);
```

4. Ishlatish (Usage)
--------------------

[](#4-ishlatish-usage)

Modulni ham API ham odatiy WEB uslubda ishlatish mumkin

- Api
    1. \[POST/GET\] [/api/one-id/url](/api/one-id/url) (name: one-id.url) - OneIdga o‘tish uchun havola beradi
    2. \[POST\] [/api/auth/token](/api/auth/token) - OneId bergan kod (code) bilan token olish. (Ushbu manzil ixtiyoriy tartibda o‘zgartirilishi mumkin, 3.2 dagi manzil bilan bir xil qo‘yiladi)
- Web
    1. \[GET\] [/one-id/login](/one-id/login) (name: one-id.login) - OneId SSO sahifasiga o‘tadi
    2. \[GET\] [/one-id/access](/one-id/access) - OneId orqali kod (code) bilan kirib kelganda tizimga kiritish. (Ushbu manzil ixtiyoriy tartibda o‘zgartirilishi mumkin, 3.1 dagi manzil bilan bir xil qo‘yiladi)

Foydalanilgan manbalar (References)
-----------------------------------

[](#foydalanilgan-manbalar-references)

- [Testbench](https://packages.tools/testbench) - Laravel Testing Helper for Packages Development
- [Laravel package tools](https://packages.tools/testbench) - Tools for creating Laravel packages

Havolalar (Links)
-----------------

[](#havolalar-links)

-
-

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance60

Regular maintenance activity

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 93.3% 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 ~62 days

Recently: every ~77 days

Total

6

Last Release

253d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/176588925?v=4)[Ijodkor dasturchilar uyushmasi](/maintainers/ijodkor)[@ijodkor](https://github.com/ijodkor)

---

Top Contributors

[![atezkor](https://avatars.githubusercontent.com/u/58693223?v=4)](https://github.com/atezkor "atezkor (14 commits)")[![kudratov25](https://avatars.githubusercontent.com/u/94834896?v=4)](https://github.com/kudratov25 "kudratov25 (1 commits)")

### Embed Badge

![Health badge](/badges/ijodkor-one-id/health.svg)

```
[![Health](https://phpackages.com/badges/ijodkor-one-id/health.svg)](https://phpackages.com/packages/ijodkor-one-id)
```

###  Alternatives

[spatie/laravel-permission

Permission handling for Laravel 12 and up

13.0k107.5M1.6k](/packages/spatie-laravel-permission)[spatie/laravel-health

Monitor the health of a Laravel application

88212.7M182](/packages/spatie-laravel-health)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.4M353](/packages/psalm-plugin-laravel)[harris21/laravel-fuse

Circuit breaker for Laravel queue jobs. Protect your workers from cascading failures.

24773.9k](/packages/harris21-laravel-fuse)[illuminate/auth

The Illuminate Auth package.

9328.5M1.3k](/packages/illuminate-auth)[defstudio/telegraph

A laravel facade to interact with Telegram Bots

818336.8k3](/packages/defstudio-telegraph)

PHPackages © 2026

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