PHPackages                             rakoitde/shieldldap - 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. rakoitde/shieldldap

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

rakoitde/shieldldap
===================

LDAP Authentication and Authorization for CodeIgniter 4

6874[1 issues](https://github.com/rakoitde/ci4-shield-ldap/issues)[2 PRs](https://github.com/rakoitde/ci4-shield-ldap/pulls)PHP

Since Oct 12Pushed 1y ago3 watchersCompare

[ Source](https://github.com/rakoitde/ci4-shield-ldap)[ Packagist](https://packagist.org/packages/rakoitde/shieldldap)[ RSS](/packages/rakoitde-shieldldap/feed)WikiDiscussions develop Synced 1mo ago

READMEChangelogDependenciesVersions (4)Used By (0)

CodeIgniter ShieldLDAP
======================

[](#codeigniter-shieldldap)

ShieldLDAP is an CodeIgniter Shield Addon to authenticate against an LDAP Server.

See the [An Official Auth Library](https://github.com/codeigniter4/shield/blob/develop/README.md) for more Info.

Authentication Methods
----------------------

[](#authentication-methods)

ShieldLDAP provides the **LDAP-based** method.

### LDAP

[](#ldap)

This is your typical username/password system you see everywhere. It includes a secure "remember me" functionality. This can be used for standard web applications, as well as for single page applications. Includes full controllers and basic views for all standard functionality, like registration, login, forgot password, etc.

Getting Started
---------------

[](#getting-started)

### Prerequisites

[](#prerequisites)

Usage of Shield requires the following:

- A [CodeIgniter 4.3.5+](https://github.com/codeigniter4/CodeIgniter4/) based project
- [Composer](https://getcomposer.org/) for package management
- PHP 7.4.3+

### Installation

[](#installation)

Installation is done through Composer.

```
composer config minimum-stability dev
composer config prefer-stable true

composer require rakoitde/shieldldap dev-develop
```

### Setup

[](#setup)

```
php spark shield:setup
php spark shieldldap:setup
```

### Config AuthLdap in .env

[](#config-authldap-in-env)

It is recommended that the AuthLdap settings are made in the .env to prevent internal company information from becoming public

```
#--------------------------------------------------------------------
# Shield AuthLdap
#--------------------------------------------------------------------

authldap.ldap_host              =
authldap.ldap_domain            =
authldap.search_base            =
authldap.storePasswordInSession = false
authldap.use_ldaps              = true
authldap.username               =
authldap.password               =
```

See the (docs)\[docs\] for more specific instructions on installation and usage recommendations.

Contributing
------------

[](#contributing)

ShieldLDAP does accept and encourage contributions from the community in any shape. It doesn't matter whether you can code, write documentation, or help find bugs, all contributions are welcome.

License
-------

[](#license)

This project is licensed under the MIT License - see the [LICENSE.md](LICENSE) file for details.

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance27

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity21

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/1dad85f565da1e51b8fa10fff584c79809e07cdb66466cb5dd7244d59948649a?d=identicon)[rakoitde@gmail.com](/maintainers/rakoitde@gmail.com)

---

Top Contributors

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

### Embed Badge

![Health badge](/badges/rakoitde-shieldldap/health.svg)

```
[![Health](https://phpackages.com/badges/rakoitde-shieldldap/health.svg)](https://phpackages.com/packages/rakoitde-shieldldap)
```

###  Alternatives

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[league/oauth1-client

OAuth 1.0 Client Library

99698.8M106](/packages/league-oauth1-client)[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)[league/oauth2-google

Google OAuth 2.0 Client Provider for The PHP League OAuth2-Client

41721.2M118](/packages/league-oauth2-google)[illuminate/auth

The Illuminate Auth package.

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

PHPackages © 2026

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