PHPackages                             mccwebdev/bat008.yii2-ldap-nwu - 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. mccwebdev/bat008.yii2-ldap-nwu

ActiveYii2-extension[Authentication &amp; Authorization](/categories/authentication)

mccwebdev/bat008.yii2-ldap-nwu
==============================

Yii 2 Ldap Extension for Northwestern University

032PHP

Since Nov 3Pushed 10y agoCompare

[ Source](https://github.com/btiedeman/mccwebdev.yii2-ldap-nwu)[ Packagist](https://packagist.org/packages/mccwebdev/bat008.yii2-ldap-nwu)[ RSS](/packages/mccwebdev-bat008yii2-ldap-nwu/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Yii 2 Ldap Extension for Northwestern University
================================================

[](#yii-2-ldap-extension-for-northwestern-university)

Yii 2 Ldap Extension for Northwestern University

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

[](#installation)

The preferred way to install this extension is through [composer](http://getcomposer.org/download/).

Either run

```
php composer.phar require --prefer-dist mccwebdev/bat008.yii2-ldap-nwu "*"

```

or add

```
"mccwebdev/bat008.yii2-ldap-nwu": "*"

```

to the require section of your `composer.json` file.

Usage
-----

[](#usage)

Once the extension is installed, configure the component:

```
'ldap' => [
	'class' => '\mccwebdev\ldap\Ldap',
	'connectionHostname' => '========',
	'connectionPort' => '========',
	'serviceDistinguishedName' => '========',
	'servicePassword' => '========',
	'searchBaseDistinguishedName' => '========',
	'searchParameters' => [
		'uid' => 'username',
	],
	'requestedAttributes' => [
		'name' => [
			'id' => 'displayname',
			'type' => 'single',
		],
		'emailAddress' => [
			'id' => 'mail',
			'type' => 'single',
		],
		'schoolAffiliations' => [
			'id' => 'nuschoolaffiliations',
			'type' => 'multiple',
		],
	],
],

```

Finally, use the component wherever you need to find or authenticate an account.

```
$isUser = Yii::$app->ldap->findUser( );
$isAuthenticated = Yii::$app->ldap->authenticateUser( );

```

You can get any additional attributes that were added to the configuration as an array using the following method after finding or authenticating an account.

```
$userAttributes = Yii::$app->ldap->getUserAttributes( );

```

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/6019945f0510c65e3deceb9be39944b41f1f049cf319205c34f65d135a7fa841?d=identicon)[b.tiedeman](/maintainers/b.tiedeman)

---

Top Contributors

[![btiedeman](https://avatars.githubusercontent.com/u/14828432?v=4)](https://github.com/btiedeman "btiedeman (23 commits)")

### Embed Badge

![Health badge](/badges/mccwebdev-bat008yii2-ldap-nwu/health.svg)

```
[![Health](https://phpackages.com/badges/mccwebdev-bat008yii2-ldap-nwu/health.svg)](https://phpackages.com/packages/mccwebdev-bat008yii2-ldap-nwu)
```

###  Alternatives

[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)[illuminate/auth

The Illuminate Auth package.

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

A flexible, driver based Acl package for PHP 5.4+

870304.7k2](/packages/beatswitch-lock)[amocrm/amocrm-api-library

amoCRM API Client

182728.5k6](/packages/amocrm-amocrm-api-library)[vonage/jwt

A standalone package for creating JWTs for Vonage APIs

424.1M4](/packages/vonage-jwt)

PHPackages © 2026

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