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

ActiveLibrary

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

OneId OAuth package for Laravel/PHP

v1.0.5(5mo ago)0393↓100%MITPHPPHP ^8.0

Since Jan 21Pushed 5mo 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 1mo 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

38

—

LowBetter than 84% of packages

Maintenance76

Regular maintenance activity

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity47

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

162d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6842c2de7e4b7f3b6bfc3ea88684d009d8381f9325bf81c9e9095cf3b0ef84f8?d=identicon)[ijodkor](/maintainers/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

[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[spatie/laravel-honeypot

Preventing spam submitted through forms

1.6k6.0M60](/packages/spatie-laravel-honeypot)[spatie/laravel-health

Monitor the health of a Laravel application

85810.0M83](/packages/spatie-laravel-health)[spatie/laravel-livewire-wizard

Build wizards using Livewire

4061.0M4](/packages/spatie-laravel-livewire-wizard)[clickbar/laravel-magellan

This package provides functionality for working with the postgis extension in Laravel.

423715.4k1](/packages/clickbar-laravel-magellan)[spatie/laravel-prometheus

Export Laravel metrics to Prometheus

2651.3M6](/packages/spatie-laravel-prometheus)

PHPackages © 2026

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