PHPackages                             mrdm-nl/ldap - 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. mrdm-nl/ldap

ActiveLibrary

mrdm-nl/ldap
============

LDAP made easy &amp; practical to use in PHP

1.1.1(12y ago)358.5k↓35.7%1[1 PRs](https://github.com/mrdm-nl/ldap/pulls)1MITPHPPHP &gt;=5.3.3

Since Dec 23Pushed 12y ago1 watchersCompare

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

READMEChangelogDependencies (1)Versions (10)Used By (1)

TIESA Ldap Component
====================

[](#tiesa-ldap-component)

Install
=======

[](#install)

Installing the component in your project is as simple as installing [Composer](http://getcomposer.org/download/)if not already done so yet.

Then, under your project root folder, create a new file called composer.json and paste the following into it:

```
{
    "require": {
        "tiesa/ldap": "dev-master"
    }
}

```

To select the component names &amp; versions, you shall refer to information found at [Packagist](http://packagist.org)

Then you are ready to download all the vendor libraries and generate the autoloading configuration file:

```
$ php composer.phar install

```

From there, loading Ldap component classes as well as any other package supported in your composer.json configuration is as easy as adding the following code at the top of your script:

```
require_once '/path/to/project/vendor/autoload.php';

```

Usage
=====

[](#usage)

Connecting &amp; Binding
------------------------

[](#connecting--binding)

A typical sequence for connecting to a LDAP involves not only establishing the connection to the server but also binding a user. This is done as follows:

```
