PHPackages                             rici12/ldap-laravel-provider - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. rici12/ldap-laravel-provider

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

rici12/ldap-laravel-provider
============================

Lean and simple Ldap provider for Laravel 5.1

0.4(10y ago)279MITPHPPHP &gt;=5.4.0

Since Jun 11Pushed 10y ago1 watchersCompare

[ Source](https://github.com/RiCi12/ldap-laravel-provider)[ Packagist](https://packagist.org/packages/rici12/ldap-laravel-provider)[ RSS](/packages/rici12-ldap-laravel-provider/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (2)Versions (5)Used By (0)

LdapLaravelProvider
===================

[](#ldaplaravelprovider)

Lean and simple ldap provider for Laravel 5.1. Works only with Active Directory system.

### When is this package useful?

[](#when-is-this-package-useful)

When you need to authenticate your user against a ldap server (Active Directory system), while maintaining a *users* table in your database.

### What is included?

[](#what-is-included)

A provider and its service provider.

### How to install

[](#how-to-install)

In your composer.json, as a *required* dependency, insert:

```
"rici12/ldap-laravel-provider": "0.*"
```

Then run

```
composer update

```

After that, open *config/app.php* and add to your *service providers* list

```
RiCi12\LdapLaravelProvider\ServiceProvider\LdapServiceProvider::class

```

Then open *config/auth.php* and change your *driver* option

```
'driver' => 'ldap'

```

Open the *.env* file and add the required options

```
LDAPSERVER = auth.magrathea.com
LDAPDOMAINNAME = MAGRATHEA\
USERNAMECREDENTIALSATTRIBUTE = username
PASSWORDCREDENTIALSATTRIBUTE = password

```

### Work flow

[](#work-flow)

1. Try to connect to the provided server
2. Check if input credentials are correct
3. If true, search for a user from *users* table (compairing 'username' attribute)
4. Return the user, if found; otherwise, throws an Exception.

### Use case

[](#use-case)

In my last project I needed to let the user authenticate with their domain credentials while not letting everybody get access to the homepage; plus, I was asked to implement a really simple roles system (read/write access). So i implemented this authentication service provider wich fits great with Laravel Auth system: you'll be able to access the user from *Auth facade*.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity51

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~22 days

Total

4

Last Release

3928d ago

### Community

Maintainers

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

---

Top Contributors

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

---

Tags

laravelldap

### Embed Badge

![Health badge](/badges/rici12-ldap-laravel-provider/health.svg)

```
[![Health](https://phpackages.com/badges/rici12-ldap-laravel-provider/health.svg)](https://phpackages.com/packages/rici12-ldap-laravel-provider)
```

###  Alternatives

[tymon/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

11.5k49.1M350](/packages/tymon-jwt-auth)[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[php-open-source-saver/jwt-auth

JSON Web Token Authentication for Laravel and Lumen

8359.8M53](/packages/php-open-source-saver-jwt-auth)[directorytree/ldaprecord-laravel

LDAP Authentication &amp; Management for Laravel.

5682.0M15](/packages/directorytree-ldaprecord-laravel)[andrewdwallo/filament-companies

A comprehensive Laravel authentication and authorization system designed for Filament, focusing on multi-tenant company management.

34450.0k2](/packages/andrewdwallo-filament-companies)[alajusticia/laravel-logins

Session management in Laravel apps, user notifications on new access, support for multiple separate remember tokens, IP geolocation, User-Agent parser

2011.0k](/packages/alajusticia-laravel-logins)

PHPackages © 2026

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