PHPackages                             wzg/yii2-ldap - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. wzg/yii2-ldap

ActiveYii2-extension[Utility &amp; Helpers](/categories/utility)

wzg/yii2-ldap
=============

ldap curd

022PHP

Since Jun 3Pushed 6y agoCompare

[ Source](https://github.com/xmwzg/yii2-ldap)[ Packagist](https://packagist.org/packages/wzg/yii2-ldap)[ RSS](/packages/wzg-yii2-ldap/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependenciesVersions (1)Used By (0)

ldap
====

[](#ldap)

ldap curd

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

[](#installation)

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

Either run

```
composer require wzg/yii2-ldap

```

or add

```
"wzg/yii2-ldap": "dev-master"

```

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

Usage
-----

[](#usage)

Once the extension is installed, simply use it in your code by :

```
	//在params配置ldap信息
    'ldap' => [
          'host' => '*********',	//服务器地址
          'port' => 389,
          'password' => '*****', //密码
          'baseDN' => 'dc=test,dc=test', //根节点
      ],
      'ret' => [
          5 => '北京公司', //对应系统内的公司ID和公司名称
      ],
      'ldaptablename' => '\backend\models\AdminUser', //用户表命名空间（系统表名不同）
      'company_field' => 'company',//用户公司ID（字段不同）
      //在main.php配置如下
      'modules' => [
          'ldap' => [
                 'class' => 'wzg\ldap\Module',
             ],
       ],
      ```
```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity37

Early-stage or recently created project

 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/a6ac317593c47321026e24d28b03693c27957053d087db923eb66c525074e68f?d=identicon)[Lucas wang](/maintainers/Lucas%20wang)

---

Top Contributors

[![xmwzg](https://avatars.githubusercontent.com/u/25677128?v=4)](https://github.com/xmwzg "xmwzg (16 commits)")

### Embed Badge

![Health badge](/badges/wzg-yii2-ldap/health.svg)

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

###  Alternatives

[igbinary/igbinary

Igbinary is a drop in replacement for the standard php serializer. Instead of the time and space consuming textual representation used by PHP's serialize(), igbinary stores php data structures in a compact binary form. Savings are significant when using memcached or similar memory based storages for serialized data.

7801.7k](/packages/igbinary-igbinary)[teknoo/states

Library to create classes following the State pattern in PHP. This can be a cleaner way for an object to change its behavior at runtime without resorting to large monolithic conditional statements and this improve maintainability and workflow writing.

1138.5k18](/packages/teknoo-states)[andychukse/laravel-pricing-plans

A package provide pricing plans for Laravel.

121.8k](/packages/andychukse-laravel-pricing-plans)

PHPackages © 2026

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