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

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

brandonlamb/adldap
==================

adLDAP, PHP LDAP library for manipulating Active Directory

v4.0.5(11y ago)027LGPL-2.1PHPPHP &gt;=5.3.0

Since Dec 25Pushed 11y ago1 watchersCompare

[ Source](https://github.com/brandonlamb/adLDAP)[ Packagist](https://packagist.org/packages/brandonlamb/adldap)[ Docs](http://adldap.sourceforge.net)[ RSS](/packages/brandonlamb-adldap/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)DependenciesVersions (2)Used By (0)

PHP LDAP CLASS FOR MANIPULATING ACTIVE DIRECTORY
================================================

[](#php-ldap-class-for-manipulating-active-directory)

*Current Stable Version 4.0.0 *

*Next Version 5.0.0*

Written by Scott Barnett, Richard Hyland email: ,

ABOUT
-----

[](#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
------------

[](#requirements)

adLDAP requires PHP 5 and both the LDAP () and SSL () libraries adLDAP version 5.0.0 will require PHP 5.3+

INSTALLATION
------------

[](#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
-------------

[](#documentation)

You can find our website at  or the class documentation at

LICENSE
-------

[](#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.

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community15

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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

4156d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/34cbf13be4b33a8e9a67a2bac1edd118301c30fb86df4f91797055abe0180e3b?d=identicon)[brandonlamb](/maintainers/brandonlamb)

---

Top Contributors

[![Rich2k](https://avatars.githubusercontent.com/u/194617?v=4)](https://github.com/Rich2k "Rich2k (18 commits)")[![ulf-de](https://avatars.githubusercontent.com/u/5023900?v=4)](https://github.com/ulf-de "ulf-de (13 commits)")[![grandkrav](https://avatars.githubusercontent.com/u/4198734?v=4)](https://github.com/grandkrav "grandkrav (6 commits)")[![treadstone42](https://avatars.githubusercontent.com/u/3845635?v=4)](https://github.com/treadstone42 "treadstone42 (4 commits)")[![samwilson](https://avatars.githubusercontent.com/u/213655?v=4)](https://github.com/samwilson "samwilson (2 commits)")[![cweagans](https://avatars.githubusercontent.com/u/101590?v=4)](https://github.com/cweagans "cweagans (2 commits)")[![ChadSikorra](https://avatars.githubusercontent.com/u/388229?v=4)](https://github.com/ChadSikorra "ChadSikorra (1 commits)")[![closer9](https://avatars.githubusercontent.com/u/206111?v=4)](https://github.com/closer9 "closer9 (1 commits)")[![EifX](https://avatars.githubusercontent.com/u/882472?v=4)](https://github.com/EifX "EifX (1 commits)")[![brandonlamb](https://avatars.githubusercontent.com/u/89181?v=4)](https://github.com/brandonlamb "brandonlamb (1 commits)")

---

Tags

ldapactive directorywindows

### Embed Badge

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

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

###  Alternatives

[symfony/ldap

Provides a LDAP client for PHP on top of PHP's ldap extension

1407.5M46](/packages/symfony-ldap)[directorytree/ldaprecord

A fully-featured LDAP ORM.

5782.9M10](/packages/directorytree-ldaprecord)[ldaptools/ldaptools

LdapTools is a feature-rich LDAP library for PHP 5.6+.

204263.9k1](/packages/ldaptools-ldaptools)[adldap/adldap

A PHP LDAP Library for Active Directory Manipulation

429170.1k9](/packages/adldap-adldap)[avadaneidanut/ldapquery

A light weight package for easily building LDAP advanced filter queries.

4717.8k](/packages/avadaneidanut-ldapquery)[freedsx/ldap

A Pure PHP LDAP library

157142.4k2](/packages/freedsx-ldap)

PHPackages © 2026

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