LdapRecord · LDAP for PHP & Laravel

LDAP that feels familiar.

Query your directory, manage users and groups, and bring LDAP authentication to your PHP applications. Get started with expressive models and a readable query builder.

use LdapRecord\Models\ActiveDirectory\User;

$user = User::query()
    ->where('mail', '[email protected]')
    ->firstOrFail();

foreach ($user->groups()->get() as $group) {
    echo $group->getName();
}
Find a user and explore their groups. Start with an LDAP connection.

Choose your package

Start with Core for any PHP application, or use the Laravel integration for authentication and user synchronization.

The Laravel integration includes Core, so you get the same directory models and query builder with either package.

Work with your directory

Supported by our sponsors

Thank you to Automattic for supporting LdapRecord and its continued development.

Automattic
Need a hand getting started?