PHPackages                             fiamma06/yii2-adldap-module - 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. fiamma06/yii2-adldap-module

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

fiamma06/yii2-adldap-module
===========================

yii2 adldap extention (wrapper for adldap/adLDAP Module)

1.0.1(12y ago)010LGPL-2.1PHP

Since Jan 29Pushed 10y ago1 watchersCompare

[ Source](https://github.com/fiamma06/yii2-adldap-module)[ Packagist](https://packagist.org/packages/fiamma06/yii2-adldap-module)[ Docs](http://www.edvler-blog.de)[ RSS](/packages/fiamma06-yii2-adldap-module/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (1)Versions (3)Used By (0)

yii2-adldap-module
==================

[](#yii2-adldap-module)

[Yii2](http://www.yiiframework.com) extension for adLDAP ()

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

[](#installation)

### Composer

[](#composer)

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

Either run

```
php composer.phar require edvlerblog/yii2-adldap-module "v1.0.1"

```

or add

```
"edvlerblog/yii2-adldap-module": "v1.0.1"

```

to the require section of your composer.json

Configuration
-------------

[](#configuration)

Add this code in your components section of the application configuration (eg. config/main.php):

```
'components' => [
	.....

	'ldap' => [
		'class'=>'Edvlerblog\Ldap',
		'options'=> [
				'ad_port'      => 389,
				'domain_controllers'    => array('AdServerName1','AdServerName2'),
				'account_suffix' =>  '@test.lan',
				'base_dn' => "DC=test,DC=lan",
				// for basic functionality this could be a standard, non privileged domain user (required)
				'admin_username' => 'ActiveDirectoryUser',
				'admin_password' => 'StrongPassword'
			]
	]

	...
]

```

[More abount config options](http://adldap.sourceforge.net/wiki/doku.php?id=documentation_configuration)

Examples
--------

[](#examples)

To use the yii2-adldap-module you need only one line. You can use the yii2-adldap-module everywhere where \\Yii::$app works (Controllers, Widgets,...).

Authenticate User:

```
$authUser = \Yii::$app->ldap->authenticate("username","password");
var_dump ($authUser);

```

Group membership of a User:

```
$groups = \Yii::$app->ldap->user()->groups("username");
var_dump($groups);

```

Get informations about a Group:

```
$groupinfo= \Yii::$app->ldap->group()->info("example_group");
var_dump($groupinfo);

```

....

[More examples](https://github.com/adldap/adLDAP/blob/master/examples/examples.php)

DOCUMENTATION
-------------

[](#documentation)

yii2-adldap-module is only a wrapper class. Feel free to learn more about the underlying adLDAP.

You can find the website at  or the class documentation at

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity64

Established project with proven stability

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

Total

2

Last Release

4493d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/1270206?v=4)[kist](/maintainers/Fiamma06)[@fiamma06](https://github.com/fiamma06)

---

Tags

yii2ldapactive directoryadadLDAP

### Embed Badge

![Health badge](/badges/fiamma06-yii2-adldap-module/health.svg)

```
[![Health](https://phpackages.com/badges/fiamma06-yii2-adldap-module/health.svg)](https://phpackages.com/packages/fiamma06-yii2-adldap-module)
```

###  Alternatives

[edvlerblog/yii2-adldap-module

yii2 Active Directory implementation (wrapper for Adldap2)

51227.3k](/packages/edvlerblog-yii2-adldap-module)[directorytree/ldaprecord

A fully-featured LDAP ORM.

5782.9M10](/packages/directorytree-ldaprecord)[jotaelesalinas/laravel-adminless-ldap-auth

Authenticate users in Laravel against an adminless LDAP server

2105.1k](/packages/jotaelesalinas-laravel-adminless-ldap-auth)[chrmorandi/yii2-ldap

Ldap

1453.1k](/packages/chrmorandi-yii2-ldap)[causal/ig_ldap_sso_auth

This extension provides LDAP support for TYPO3 by delegating the authentication of frontend and/or backend users to the centrally-managed directory of your organization. It fully supports OpenLDAP and Active Directory and is capable of connecting securely to the authentication server using either TLS or SSL (ldaps://). In case of use in an intranet environment, this extension is a perfect match since it natively brings Single Sign-On (SSO) capability to TYPO3 without any complex configuration.

33377.4k](/packages/causal-ig-ldap-sso-auth)

PHPackages © 2026

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