duxdeorum/adldap
Composer 安装命令:
composer require duxdeorum/adldap
包简介
adLDAP, PHP LDAP library for manipulating Active Directory
README 文档
README
Current Stable Version 4.0.0 https://github.com/adldap/adLDAP/releases/tag/v4.0.4
Next Version 5.0.0
Written by Scott Barnett, Richard Hyland email: scott@wiggumworld.com, adldap@richardhyland.com https://github.com/adldap/adLDAP/
ABOUT
adLDAP is a PHP class that provides LDAP authentication and integration with Active Directory.
We'd appreciate any improvements or additions to be submitted back to benefit the entire community :)
REQUIREMENTS
adLDAP requires PHP 5 and both the LDAP (http://php.net/ldap) and SSL (http://php.net/openssl) libraries adLDAP version 5.0.0 will require PHP 5.3+
INSTALLATION
adLDAP is not an application, but a class library designed to integrate into your own applications.
The core of adLDAP is contained in the 'lib/adLDAP' directory. Simply copy/rename this directory inside your own projects.
Edit the file lib/adldap/adLDAP.php and change the configuration variables near the top, specifically those for domain controllers, base dn and account suffix, and if you want to perform anything more complex than use authentication you'll also need to set the admin username and password variables too.
From within your code simply require the adLDAP.php file and call it like so
use \adLDAP; require_once(dirname(__FILE__) . '/adLDAP.php'); $adldap = new adLDAP(); It would be better to wrap it in a try/catch though
use \adLDAP; try { $adldap = new adLDAP(); } catch (adLDAPException $e) { echo $e; exit(); } Then simply call commands against it e.g.
$adldap->authenticate($username, $password);
or
$adldap->group()->members($groupName);
DOCUMENTATION
You can find our website at https://github.com/adldap/adLDAP/ or the class documentation at
https://github.com/adldap/adLDAP/wiki/adLDAP-Developer-API-Reference
LICENSE
This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU Lesser General Public License for more details or LICENSE.txt distributed with this class.
duxdeorum/adldap 适用场景与选型建议
duxdeorum/adldap 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 7.62k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 01 月 04 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「ldap」 「windows」 「active directory」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 duxdeorum/adldap 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 duxdeorum/adldap 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 duxdeorum/adldap 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Small library to access Microsoft Windows Azure Blob Storage with a Service or a StreamWrapper.
Propel2 is an open-source Object-Relational Mapping (ORM) for PHP 5.5 and up.
A Symfony extension to get active class base on current bundle/controller/action
LDAP user provider bundle for Symfony 6.4
The helper class for Laravel applications to get active class base on current route for Laravel 11
Anax Database Active Record module for model classes.
统计信息
- 总下载量: 7.62k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 31
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: LGPL-2.1
- 更新时间: 2026-01-04