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

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

agrodep/one-id
==============

OneId OAuth package for Laravel/PHP

v1.0(4mo ago)016MITPHPPHP ^8.0

Since Oct 23Pushed 4mo agoCompare

[ Source](https://github.com/DilmurodQurbonboyev/one-id)[ Packagist](https://packagist.org/packages/agrodep/one-id)[ RSS](/packages/agrodep-one-id/feed)WikiDiscussions main Synced today

READMEChangelog (1)Dependencies (5)Versions (2)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 agrodep/one-id
```

Sozlama faylni asosiyga chiqarish

```
php artisan vendor:publish --provider="Agrodep\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

33

—

LowBetter than 77% of packages

Maintenance73

Regular maintenance activity

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity39

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

149d ago

### Community

Maintainers

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

---

Top Contributors

[![DilmurodQurbonboyev](https://avatars.githubusercontent.com/u/75987687?v=4)](https://github.com/DilmurodQurbonboyev "DilmurodQurbonboyev (1 commits)")

### Embed Badge

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

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

###  Alternatives

[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.7k2.6M73](/packages/bezhansalleh-filament-shield)[maize-tech/laravel-magic-login

Laravel Magic Login

1787.5k](/packages/maize-tech-laravel-magic-login)

PHPackages © 2026

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