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();
}
Choose your package
Start with Core for any PHP application, or use the Laravel integration for authentication and user synchronization.
LdapRecord Core
Query your directory and manage LDAP entries through PHP models. Work with users, groups, and their relationships.
Explore Core For Laravel applicationsLdapRecord Laravel
Authenticate users with LDAP credentials, sync their database records, and query your directory from Laravel.
Explore LaravelThe Laravel integration includes Core, so you get the same directory models and query builder with either package.
Work with your directory
Query your directory
Find entries by email, department, or any other LDAP attribute using readable query methods.
Manage users and groups
Update user profiles and manage Active Directory group memberships from your application.
Authenticate your users
Let users sign in to Laravel with their existing directory credentials.
Supported by our sponsors
Thank you to Automattic for supporting LdapRecord and its continued development.

