PHPackages                             plunging-chode/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. plunging-chode/ldap

ActiveLibrary

plunging-chode/ldap
===================

A small library to ease LDAP searches

07PHP

Since Apr 1Pushed 5y ago1 watchersCompare

[ Source](https://github.com/plungingChode/ldap)[ Packagist](https://packagist.org/packages/plunging-chode/ldap)[ RSS](/packages/plunging-chode-ldap/feed)WikiDiscussions development Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

plunging-chode/ldap
===================

[](#plunging-chodeldap)

Install with [composer](https://getcomposer.org/download/):

```
composer require plunging-chode/ldap

```

Make an LDAP query or validate a user's credentials:

```
use PlungingChode\Ldap\Ldap;
use PlungingChode\Ldap\Filter;

$ldap = new Ldap(
        // Supply a host and port
        'ldap.host', 386,
        // Base DN used for searches
        'dc=example,dc=local',
        // A user with search privileges
        'user@example', 'user_pw'
    );

// Try to login as `usr`. Returns true or false
$correctCredentials = $ldap->authenticate('usr', 'password');

// Specify search fields
$lookFor = ['sn', 'givenname', 'mail'];

// Build a query string
$filter = Filter::and(
    Filter::eq('sn', 'Jameson'),
    Filter::or(
        Filter::eq('givenname', 'James'),
        Filter::eq('givenname', 'Jonah')
    )
)

// Execute query and fetch results as an array
$results = $ldap->search($filter, $lookFor);

// Check results
echo '' . var_export($results, true) . '';
```

###  Health Score

16

—

LowBetter than 5% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity30

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/9858947274fdc98b1245bd0136ecb079cabf40ecd95ec780646d35a293aa3b08?d=identicon)[plungingChode](/maintainers/plungingChode)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/plunging-chode-ldap/health.svg)

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

PHPackages © 2026

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