PHPackages                             khbd/laravel-wso2-identity-api-user - 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. khbd/laravel-wso2-identity-api-user

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

khbd/laravel-wso2-identity-api-user
===================================

Laravel wso2 identity api user is a Laravel Package for WSO2 IDP user

v1.0.0(2y ago)21.2k1[2 PRs](https://github.com/kalyan312/laravel-wso2-identity-api-user/pulls)MITPHPPHP ^7.2|^8.0

Since Oct 20Pushed 2y ago1 watchersCompare

[ Source](https://github.com/kalyan312/laravel-wso2-identity-api-user)[ Packagist](https://packagist.org/packages/khbd/laravel-wso2-identity-api-user)[ RSS](/packages/khbd-laravel-wso2-identity-api-user/feed)WikiDiscussions main Synced 3d ago

READMEChangelog (10)DependenciesVersions (11)Used By (0)

Laravel WSO2 Identity API User
==============================

[](#laravel-wso2-identity-api-user)

This is a Laravel library to manage WSO2 IDP users.

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

[](#installation)

You can install the package via composer:

```
composer require khbd/laravel-wso2-identity-api-user
```

Laravel Usage
-------------

[](#laravel-usage)

The package will register itself automatically.

Then publish the package configuration file

```
php artisan vendor:publish --provider=Khbd\LaravelWso2IdentityApiUser\IdpServiceProvider
```

or

```
php artisan vendor:publish --provider=Khbd\LaravelWso2IdentityApiUser\IdpServiceProvider  --tag="idpuser"
```

Lumen Usage
-----------

[](#lumen-usage)

For Lumen usage the service provider should be registered manually as follow in bootstrap/app.php:

```
$app->register(Khbd\LaravelWso2IdentityApiUser\IdpUserServiceProvider::class);
```

Copy [IdpUser](https://github.com/tasmidur/laravel-wso2-identity-api-user/blob/main/src/Config/IdpUser.php) file to config directory. Then add the bellow text to the bootstrap/app.php:

```
$app->configure('IdpUser');
```

Usage
-----

[](#usage)

Check the config file of all variables required, and then

```
(new IdpUser())->create(array());
```

or using Facade

```
IdpUser::create(array());
```

or using helper

```
IdpUser()->create(array());
```

Create you SDK
==============

[](#create-you-sdk)

Run this command to create your own sdk class.

```
 php artisan make:idpdriver YourSDKName

```

Now add the class in config idpUser.php config file.

API references
==============

[](#api-references)

### Here all covered API references

[](#here-all-covered-api-references)

> 1. Get Wso2 IDP User by ID

```
IdpUser()->setPayload('userID')->userInfo()->get();

```

or to get only response body

```
IdpUser()
->use('wso2idp')
->setPayload('userID')
->userInfo()
->onlyBody()
->get();

```

Here -

---

`use('yourSDK')` `optional` set your custom SDK.

`onlyBody()` `optional` return only response from IDP server/end API

---

`get()` return response as `array`

`asObject()` return response as `object`

`asJson()` return response as `json`

---

> 2. Create IDP user and get created user info

```
        $response = IdpUser()->setPayload([
        'first_name' => 'Kalyan',
        'last_name' => 'Kalyan',
        'username' => 'Kalyan4',
        'email' => 'Kalyan4@gmail.com',
        'mobile' => '01945602071',
        'user_type' => '2',
        'active' => true,
        'department' => 'Kalyan',
        ])->create()->get();

```

> 3. Update User By User ID

*you can provide single field or multiple field at the same time*

```
        $response = IdpUser()->setPayload([
        'id' =>'UserID',
        'username' => 'Kalyan3',
        'account_status' => 1,
        'mobile' => '01945602071'
        ])->update()->get();

```

here `id` and `username` is mendatory. You can provide following field to update &amp; create -

KeyData TypeDetailsfirst\_namestringUpdate `givenName`last\_namestring\[Update `familyName`passwordstringUpdate `password`emailemailUpdate `emails`mobilestringUpdate `phoneNumbers`user\_typeintegerUpdate `userType`birthdateISO\_OFFSET\_DATE\_TIME \[2018-10-03T07:24:14.772+03:00\]\[Update `familyName`account\_disablebooleanUpdate `accountDisabled`account\_lockbooleanUpdate `accountLocked`account\_statestringUpdate `accountState`departmentstringUpdate `department`organizationstringUpdate `organization`countrystringUpdate `country`4. Delete single/bulk IDP User
------------------------------

[](#4-delete-singlebulk-idp-user)

*provide user `single id` to delete single user or provide `array of user id` to delete bulk user from `IDP`*

```
        $userID = 'ID';
        $response = IdpUser()
        ->use('wso2idp')
        ->setPayload($userID)
        ->delete()
        ->get();

```

*here - `$userID` can be single user ID or array of user ID.*

5. Reset password of users
--------------------------

[](#5-reset-password-of-users)

> user api, do not need admin permission

*as a param pass a array of user crediantials like following example -*

```
   $response = IdpUser()->setPayload([
        'current_password' => 'kalyan111',
        'username'         => '01521212121',
        'new_password'     => 'newPass'
    ])->userResetPassword()->get();

```

5. find user list
-----------------

[](#5-find-user-list)

> query users from IDP

*as a param pass a array of filter like following example -*

```
    $response = IdpUser()->setPayload([
        'page' => 1,
        'count' => 10,
        'filter' => ''
    ])->findUsers()->get();

```

Adding new Gateway
------------------

[](#adding-new-gateway)

.env Config
-----------

[](#env-config)

So .env config is following -

```
DEFAULT_IDP = 'wso2idp' #set default idp

# add your wso2 idp information
WSO2_IDP_BASE_URL = 'http://wso2.com'
WSO2_IDP_USERNAME = 'admin'
WSO2_IDP_PASSWORD = 'admin'

IDP_ENABLED = true # true = if you want to enable functionality of idp
IDP_USER_DEBUG = true  # true = if you want to save log in file
```

Contributing
------------

[](#contributing)

Suggestions, pull requests , bug reporting and code improvements are all welcome. Feel free.

TODO
----

[](#todo)

Write Tests

Credits
-------

[](#credits)

- [Kalyan Halder](https://github.com/kalyan312)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE) for more information.

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 66.7% 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 ~78 days

Recently: every ~129 days

Total

10

Last Release

961d ago

Major Versions

v0.0.9 → v1.0.02023-09-24

PHP version history (2 changes)v0.0.1PHP ^7.2

v0.0.3PHP ^7.2|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/9a905191cc2ddf71d9092d0c4ddc28861bfa3f5d6f52c4d6e3cab342927b3ff2?d=identicon)[kalyan312](/maintainers/kalyan312)

---

Top Contributors

[![kalyan312](https://avatars.githubusercontent.com/u/10464136?v=4)](https://github.com/kalyan312 "kalyan312 (8 commits)")[![tasmidur](https://avatars.githubusercontent.com/u/18406635?v=4)](https://github.com/tasmidur "tasmidur (4 commits)")

### Embed Badge

![Health badge](/badges/khbd-laravel-wso2-identity-api-user/health.svg)

```
[![Health](https://phpackages.com/badges/khbd-laravel-wso2-identity-api-user/health.svg)](https://phpackages.com/packages/khbd-laravel-wso2-identity-api-user)
```

###  Alternatives

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M118](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)

PHPackages © 2026

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