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 today

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 35% 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

3974d 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

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[laravel/horizon

Dashboard and code-driven configuration for Laravel queues.

4.2k95.4M306](/packages/laravel-horizon)[laravel/sail

Docker files for running a basic Laravel application.

1.9k205.7M1.3k](/packages/laravel-sail)[illuminate/database

The Illuminate Database package.

2.8k54.9M11.6k](/packages/illuminate-database)[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M195](/packages/laravel-ai)[moonshine/moonshine

Laravel administration panel

1.3k253.1k81](/packages/moonshine-moonshine)

PHPackages © 2026

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