PHPackages                             mmt/laravel-iam-service-sdk - 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. mmt/laravel-iam-service-sdk

ActiveLibrary

mmt/laravel-iam-service-sdk
===========================

Laravel SDK for interacting with the MMT IAM Service.

v1.2.0(3w ago)04↓75%MITPHPPHP ^8.3

Since Jul 16Pushed 3w agoCompare

[ Source](https://github.com/MMTech-Solutions/MMT-IAM-SERVICE-SDK)[ Packagist](https://packagist.org/packages/mmt/laravel-iam-service-sdk)[ RSS](/packages/mmt-laravel-iam-service-sdk/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (8)Versions (4)Used By (0)

mmt/laravel-iam-service-sdk
===========================

[](#mmtlaravel-iam-service-sdk)

Cliente Laravel (**SDK**) para el **MMT IAM Service**: perfiles de usuario, red IB, settings IB y 2FA, con transporte intercambiable, respuestas tipadas (`ObjectResponses` + `WireHydration`) y contratos documentados.

Espejo de `mmt/laravel-trading-service-sdk` (sin capa `Session`; IAM es stateless).

Requisitos
----------

[](#requisitos)

- PHP `^8.3`
- Guzzle `^7.2`
- Laravel `^11|^12|^13` (Illuminate Support)

Instalación
-----------

[](#instalación)

```
composer require mmt/laravel-iam-service-sdk
php artisan vendor:publish --tag=laravel-iam-service-sdk-config
```

Publicado en Packagist como [`mmt/laravel-iam-service-sdk`](https://packagist.org/packages/mmt/laravel-iam-service-sdk). Repo: [MMT-IAM-SERVICE-SDK](https://github.com/MMTech-Solutions/MMT-IAM-SERVICE-SDK).

Configuración
-------------

[](#configuración)

VariableDescripción`RBAC_IAM_BASE_URL` / `USER_IAM_BASE_URL`URL base del IAM MS`RBAC_IAM_INTERNAL_TOKEN`Token interno (`X-Internal-Token`)`RBAC_INTERNAL_CALLER_SOURCE`Identificador del MS llamador (`X-Internal-Source`, default `ms-broker`)`USER_IAM_TIMEOUT_MS` / `RBAC_IAM_TIMEOUT_MS`Timeout HTTP en msUso
---

[](#uso)

```
use Mmt\IamServiceSdk\IamService;
use Mmt\IamServiceSdk\Domains\Users\ObjectResponses\UserProfileItem;

$iam = app(IamService::class);

$result = $iam->users()->getProfile($userId);

if ($result->isSuccess()) {
    /** @var UserProfileItem $profile */
    $profile = $result->getMappedData(UserProfileItem::class);
}

$bulk = $iam->users()->lookupByIds([$userId, $anotherUserId]);
if ($bulk->isSuccess()) {
    /** @var list $profiles */
    $profiles = $bulk->getMappedData(UserProfileItem::class);
}
```

Dominios disponibles:

- `$iam->referralNetwork()` — upline, downline, direct referrals
- `$iam->ibSettings()` — `getNetworkSettings()`
- `$iam->auth()` — `confirmTwoFactor($code, $extraHeaders)`
- `$iam->users()` — `getProfile($userId)`, `lookupByIds(array $userIds)`, `searchCustomerDirectory(array $params)`
- `$iam->health()` — health check

Transporte intercambiable
-------------------------

[](#transporte-intercambiable)

```
use Mmt\IamServiceSdk\TransportDrivers\Contracts\TransportInterface;

$this->app->instance(TransportInterface::class, $fakeTransport);
```

`ActionResultInterface` expone `getStatus(): ?int` además de `getData(?FQCN)` y `getMappedData(?FQCN)` para soportar semántica IAM (422 `USER_NOT_IB`, 4xx vs 5xx en 2FA).

Arquitectura
------------

[](#arquitectura)

```
broker Features → User Gateway (adaptadores + mappers) → IamService → TransportInterface → IAM MS

```

`mmtech/iam-rbac` sigue manejando auth/permisos/Kafka; este SDK cubre consumo de métodos de negocio IAM.

Licencia
--------

[](#licencia)

MIT

###  Health Score

41

—

FairBetter than 87% of packages

Maintenance94

Actively maintained with recent releases

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity51

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 ~10 days

Total

3

Last Release

25d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/7cd3222ff3acc4f4a0d5d216d7c83597a66e7f8249351abd0c54fa8912457d4e?d=identicon)[TitanDvd92](/maintainers/TitanDvd92)

---

Top Contributors

[![TitanDvd](https://avatars.githubusercontent.com/u/75149259?v=4)](https://github.com/TitanDvd "TitanDvd (2 commits)")

---

Tags

laravelsdkiamMMT

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mmt-laravel-iam-service-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/mmt-laravel-iam-service-sdk/health.svg)](https://phpackages.com/packages/mmt-laravel-iam-service-sdk)
```

###  Alternatives

[laravel/socialite

Laravel wrapper around OAuth 1 &amp; OAuth 2 libraries.

5.7k118.2M1.0k](/packages/laravel-socialite)[craftcms/cms

Craft CMS

3.6k3.7M3.5k](/packages/craftcms-cms)[laravel/boost

Laravel Boost accelerates AI-assisted development by providing the essential context and structure that AI needs to generate high-quality, Laravel-specific code.

3.6k31.1M880](/packages/laravel-boost)[spatie/laravel-health

Monitor the health of a Laravel application

89313.5M195](/packages/spatie-laravel-health)[illuminate/http

The Illuminate Http package.

13239.1M8.7k](/packages/illuminate-http)[nativephp/mobile

NativePHP for Mobile

1.2k128.7k170](/packages/nativephp-mobile)

PHPackages © 2026

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