PHPackages                             khcegodk/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. [Utility &amp; Helpers](/categories/utility)
4. /
5. khcegodk/ldap

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

khcegodk/ldap
=============

LDAP made easy &amp; practical to use in PHP

1.0.0(13y ago)08.9kMITPHP &gt;=5.3.3

Since Feb 4Compare

[ Source](https://github.com/khcegodk/ldap)[ Packagist](https://packagist.org/packages/khcegodk/ldap)[ Docs](https://github.com/ccottet/ldap)[ RSS](/packages/khcegodk-ldap/feed)WikiDiscussions Synced 5d ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

Ldap Component
==============

[](#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": {
        "khcegodk/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:

```
