PHPackages                             strathmore/ldap-auth - 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. strathmore/ldap-auth

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

strathmore/ldap-auth
====================

Reusable LDAP authentication package for Laravel projects

v1.0.0(3mo ago)04MITPHPPHP ^8.1

Since Jan 30Pushed 3mo agoCompare

[ Source](https://github.com/benedictgodhana/strathmore-ldap-auth)[ Packagist](https://packagist.org/packages/strathmore/ldap-auth)[ RSS](/packages/strathmore-ldap-auth/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (2)Used By (0)

Strathmore LDAP Auth
====================

[](#strathmore-ldap-auth)

A reusable Laravel package for LDAP authentication and auto-fetching user data via web services.
Supports staff and students trees, multiple LDAP connections, and optional auto-creation of local users.

---

Features
--------

[](#features)

- LDAP authentication for staff and students
- Configurable LDAP connections and trees
- Optional web-service fetch for user data
- Laravel-ready: Service Provider + Facade
- Config-driven, works across Laravel 10 and 11
- Easy installation, Spatie-style DX

---

Installation
------------

[](#installation)

Require the package via Composer (local dev or Packagist):

```
composer require strathmore/ldap-auth
```

Publish the configuration file:

```
php artisan vendor:publish --tag=ldap-config
```

---

.env Example
------------

[](#env-example)

Add these variables to your `.env` file and adjust as needed:

```
LDAP_HOSTS=ldap.example.com
LDAP_BIND_DN=cn=admin,dc=example,dc=com
LDAP_BIND_PASSWORD=secret
LDAP_PORT=389
LDAP_BASE_DN=dc=example,dc=com
LDAP_TIMEOUT=5
LDAP_SSL=false
LDAP_TLS=false

LDAP_STAFF_DOMAIN=staff.example.com
LDAP_STAFF_TREE=ou=staff,dc=example,dc=com
LDAP_STUDENT_DOMAIN=students.example.com
LDAP_STUDENT_TREE=ou=students,dc=example,dc=com

STUDENT_DATASERVICE_URL=https://api.example.com/students/
STAFF_DATASERVICE_URL=https://api.example.com/staff/
```

---

Author
------

[](#author)

**Benedict Godhana**

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance79

Regular maintenance activity

Popularity4

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity43

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

Unknown

Total

1

Last Release

108d ago

### Community

Maintainers

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

---

Top Contributors

[![benedictgodhana](https://avatars.githubusercontent.com/u/113383009?v=4)](https://github.com/benedictgodhana "benedictgodhana (2 commits)")

### Embed Badge

![Health badge](/badges/strathmore-ldap-auth/health.svg)

```
[![Health](https://phpackages.com/badges/strathmore-ldap-auth/health.svg)](https://phpackages.com/packages/strathmore-ldap-auth)
```

###  Alternatives

[bezhansalleh/filament-shield

Filament support for `spatie/laravel-permission`.

2.8k2.9M88](/packages/bezhansalleh-filament-shield)[gesdinet/jwt-refresh-token-bundle

Implements a refresh token system over Json Web Tokens in Symfony

70516.4M35](/packages/gesdinet-jwt-refresh-token-bundle)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)[beatswitch/lock

A flexible, driver based Acl package for PHP 5.4+

870304.7k2](/packages/beatswitch-lock)[amocrm/amocrm-api-library

amoCRM API Client

182728.5k6](/packages/amocrm-amocrm-api-library)[vonage/jwt

A standalone package for creating JWTs for Vonage APIs

424.1M4](/packages/vonage-jwt)

PHPackages © 2026

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