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

ActiveYii2-extension

alexeevdv/yii2-adldap
=====================

Yii2 wrapper for Adldap

1.0.0(8y ago)06.4k↓100%MITPHP

Since Mar 6Pushed 8y ago1 watchersCompare

[ Source](https://github.com/alexeevdv/yii2-adldap)[ Packagist](https://packagist.org/packages/alexeevdv/yii2-adldap)[ RSS](/packages/alexeevdv-yii2-adldap/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (2)Used By (0)

Yii2-adldap
===========

[](#yii2-adldap)

This is Yii2 wrapper for [PHP LDAP Library](https://github.com/adLDAP2/adLDAP2). It provides ability to use original Adldap class as Yii2 component.

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

[](#installation)

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

Either run

```
composer require alexeevdv/yii2-adldap "~1.0.0"

```

or add

```
"alexeevdv/yii2-adldap": "~1.0.0"

```

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' => \alexeevdv\adldap\Adldap::class,
        'options' => [
            'domain_controllers' => [
                '192.168.0.1',
                '192.168.0.2'
            ],
            'account_suffix' =>  '@test.lan',
            'base_dn' => "DC=test,DC=lan",
        ]
    ],
    ...
]
```

All options and methods are the same as in original class. Take a look at [documentation](https://github.com/Adldap2/Adldap2) if you need more info.

Examples
--------

[](#examples)

Authentication with username and password:

```
if (Yii::$app->ldap->authenticate("username", "password")) {
    // We are goood
} else {
    // Authentication failed
}
```

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity22

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

Established project with proven stability

 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

2990d ago

### Community

Maintainers

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

---

Top Contributors

[![alexeevdv](https://avatars.githubusercontent.com/u/597839?v=4)](https://github.com/alexeevdv "alexeevdv (7 commits)")

---

Tags

yii2adLDAP

### Embed Badge

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

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

###  Alternatives

[craftcms/cms

Craft CMS

3.6k3.6M2.6k](/packages/craftcms-cms)[edvlerblog/yii2-adldap-module

yii2 Active Directory implementation (wrapper for Adldap2)

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

PHPackages © 2026

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