PHPackages                             directorytree/ldaprecord - 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. [Database &amp; ORM](/categories/database)
4. /
5. directorytree/ldaprecord

ActiveLibrary[Database &amp; ORM](/categories/database)

directorytree/ldaprecord
========================

A fully-featured LDAP ORM.

v4.0.2(4mo ago)5782.9M—8.7%44[4 issues](https://github.com/DirectoryTree/LdapRecord/issues)[1 PRs](https://github.com/DirectoryTree/LdapRecord/pulls)9MITPHPPHP &gt;=8.1CI passing

Since Sep 27Pushed 1mo ago7 watchersCompare

[ Source](https://github.com/DirectoryTree/LdapRecord)[ Packagist](https://packagist.org/packages/directorytree/ldaprecord)[ Docs](https://www.ldaprecord.com)[ GitHub Sponsors](https://github.com/stevebauman)[ RSS](/packages/directorytree-ldaprecord/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (10)Versions (182)Used By (9)

[![](https://camo.githubusercontent.com/1327574a057c0c4dc701867549d9f3439be5b7e7cd64509bf6ac3f2c698c9072/68747470733a2f2f6c6461707265636f72642e636f6d2f6c6f676f2e737667)](https://camo.githubusercontent.com/1327574a057c0c4dc701867549d9f3439be5b7e7cd64509bf6ac3f2c698c9072/68747470733a2f2f6c6461707265636f72642e636f6d2f6c6f676f2e737667)

[![](https://camo.githubusercontent.com/7420f328f7bd200ce5fb477cd641bcd6ea002b3dc5dd7c320da77a0b3a5d6c59/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6469726563746f7279747265652f6c6461707265636f72642f72756e2d74657374732e796d6c3f6272616e63683d6d6173746572267374796c653d666c61742d737175617265)](https://github.com/DirectoryTree/LdapRecord/actions)[![](https://camo.githubusercontent.com/cb5efef535a9c27f0ee7503a1df02d469868592b4c0a05fa4b265eeeebf3ae0a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f4469726563746f7279547265652f4c6461705265636f72642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/DirectoryTree/LdapRecord)[![](https://camo.githubusercontent.com/b4728e71cec8f185b89f4129749ab4cbbf603746312f0bc65afb74d640af2467/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f4469726563746f7279547265652f4c6461705265636f72642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/DirectoryTree/LdapRecord)[![](https://camo.githubusercontent.com/540a2827a04c408275da3c042c1473c8d7ae2c96013bfbc1ca61a9e46e818ff6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f4469726563746f7279547265652f4c6461705265636f72642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/DirectoryTree/LdapRecord)

 Working with LDAP doesn't need to be hard.

 LdapRecord is a fully-featured [Active Record](https://en.wikipedia.org/wiki/Active_record_pattern) ORM that makes working with LDAP directories a breeze 🍃

####  [Quickstart](https://ldaprecord.com/docs/core/v4/quickstart/)  ·  [Documentation](https://ldaprecord.com/docs/core/v4/)  ·  [Laravel Integration](https://github.com/DirectoryTree/LdapRecord-Laravel)  ·  [Post a Question](https://github.com/DirectoryTree/LdapRecord/discussions/new)

[](#----quickstart----------documentation----------laravel-integration----------post-a-question)

---

⏲ **Up and Running Fast**

Connect to your LDAP servers and start running queries in a matter of minutes.

💡 **Fluent Filter Builder**

Find the LDAP objects you're looking for with a fluent LDAP filter builder.

💼 **Multi-Domain Ready**

Built-in connection management allows you to access multiple domains without breaking a sweat.

🔥 **Supercharged Active Record**

Create and modify LDAP objects with minimal code.

---

### Active Directory Features

[](#active-directory-features)

🚪 **Enable / Disable Accounts**

Detect and assign User Account Control values on accounts with the fluent [Account Control builder](https://ldaprecord.com/docs/core/v4/active-directory/users/#uac).

🔑 **Reset / Change Passwords**

Built-in support for [changing](https://ldaprecord.com/docs/core/v4/active-directory/users/#changing-passwords) and [resetting](https://ldaprecord.com/docs/core/v4/active-directory/users/#resetting-passwords) passwords on Active Directory accounts.

🗑 **Restore Deleted Objects**

Seamlessly access your Active Directory recycle bin and [restore deleted objects](https://ldaprecord.com/docs/core/v4/models/#restoring-deleted-models).

---

### LdapRecord is Supportware™

[](#ldaprecord-is-supportware)

If you require support using LdapRecord, a [sponsorship](https://github.com/sponsors/stevebauman) is required 🙏

Thank you for your understanding ❤️

---

### Security Vulnerabilities

[](#security-vulnerabilities)

If you discover a security vulnerability within LdapRecord, please send an e-mail to Steve Bauman via [steven\_bauman@outlook.com](mailto:steven_bauman@outlook.com).

All security vulnerabilities will be promptly addressed.

---

### Credits

[](#credits)

This package is directly inspired from [Laravel's Eloquent](https://laravel.com/docs/eloquent), and most features are direct ports to an LDAP equivalent.

I am forever grateful for the work [Taylor Otwell](https://github.com/taylorotwell) has produced.

If you can, support his work by purchasing a [sponsorship](https://github.com/sponsors/taylorotwell), or one of his many Laravel based services.

###  Health Score

71

—

ExcellentBetter than 100% of packages

Maintenance83

Actively maintained with recent releases

Popularity64

Solid adoption and visibility

Community37

Small or concentrated contributor base

Maturity86

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 96.1% 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

Every ~14 days

Recently: every ~24 days

Total

170

Last Release

60d ago

Major Versions

v1.0.x-dev → v2.3.02021-03-17

v2.20.3 → v3.0.02023-05-01

v2.20.4 → v3.0.22023-05-29

v2.20.5 → v3.2.12023-10-11

v3.8.5 → v4.0.02025-12-13

PHP version history (4 changes)v1.0.0-beta.1PHP &gt;=7.1

v1.0.0PHP &gt;=7.2

v2.5.0PHP &gt;=7.3

v3.0.0PHP &gt;=8.1

### Community

Maintainers

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

---

Top Contributors

[![stevebauman](https://avatars.githubusercontent.com/u/6421846?v=4)](https://github.com/stevebauman "stevebauman (4670 commits)")[![StyleCIBot](https://avatars.githubusercontent.com/u/11048387?v=4)](https://github.com/StyleCIBot "StyleCIBot (71 commits)")[![kichetof](https://avatars.githubusercontent.com/u/12150996?v=4)](https://github.com/kichetof "kichetof (28 commits)")[![strebl](https://avatars.githubusercontent.com/u/6151204?v=4)](https://github.com/strebl "strebl (12 commits)")[![nohnaimer](https://avatars.githubusercontent.com/u/8865830?v=4)](https://github.com/nohnaimer "nohnaimer (8 commits)")[![briskt](https://avatars.githubusercontent.com/u/3172830?v=4)](https://github.com/briskt "briskt (7 commits)")[![Nykilor](https://avatars.githubusercontent.com/u/12702266?v=4)](https://github.com/Nykilor "Nykilor (5 commits)")[![wunc](https://avatars.githubusercontent.com/u/11369963?v=4)](https://github.com/wunc "wunc (5 commits)")[![Frankich](https://avatars.githubusercontent.com/u/20720219?v=4)](https://github.com/Frankich "Frankich (5 commits)")[![mvatansever](https://avatars.githubusercontent.com/u/5843891?v=4)](https://github.com/mvatansever "mvatansever (4 commits)")[![grantholle](https://avatars.githubusercontent.com/u/1189456?v=4)](https://github.com/grantholle "grantholle (4 commits)")[![villfa](https://avatars.githubusercontent.com/u/2891564?v=4)](https://github.com/villfa "villfa (3 commits)")[![eltharin](https://avatars.githubusercontent.com/u/7547802?v=4)](https://github.com/eltharin "eltharin (3 commits)")[![dscone](https://avatars.githubusercontent.com/u/1187353?v=4)](https://github.com/dscone "dscone (3 commits)")[![svalgaard](https://avatars.githubusercontent.com/u/3189339?v=4)](https://github.com/svalgaard "svalgaard (3 commits)")[![mehrdad-shokri](https://avatars.githubusercontent.com/u/13661520?v=4)](https://github.com/mehrdad-shokri "mehrdad-shokri (3 commits)")[![nerdalertdk](https://avatars.githubusercontent.com/u/3426495?v=4)](https://github.com/nerdalertdk "nerdalertdk (2 commits)")[![Cbrad24](https://avatars.githubusercontent.com/u/2669153?v=4)](https://github.com/Cbrad24 "Cbrad24 (2 commits)")[![Destreyf](https://avatars.githubusercontent.com/u/967304?v=4)](https://github.com/Destreyf "Destreyf (2 commits)")[![jspringe](https://avatars.githubusercontent.com/u/518362?v=4)](https://github.com/jspringe "jspringe (2 commits)")

---

Tags

activerecordldapormdirectoryldapactive directoryadadLDAPwindowsadldap2ldaprecord

###  Code Quality

TestsPHPUnit

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/directorytree-ldaprecord/health.svg)

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

###  Alternatives

[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[laravel-doctrine/orm

An integration library for Laravel and Doctrine ORM

8425.3M87](/packages/laravel-doctrine-orm)[hautelook/alice-bundle

Symfony bundle to manage fixtures with Alice and Faker.

19519.4M34](/packages/hautelook-alice-bundle)[topthink/think-orm

the PHP Database&amp;ORM Framework

4542.0M218](/packages/topthink-think-orm)[sokil/php-mongo

PHP Object Document Mapper for MongoDB

239161.5k9](/packages/sokil-php-mongo)[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)
