PHP code example of samkoch / yii2-ldap

1. Go to this page and download the library: Download samkoch/yii2-ldap library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

samkoch / yii2-ldap example snippets

 
    $config = [
    ...
    'ldap' => [
      'class' => 'samkoch/yii2ldap/Ldap',
      'config' => [
        'host' => 'ldap.example.com',
        'port' => '389',
        'domain' => 'exampledomain',
        'baseDn' => 'DC=example,
        'username' => 'user',
        'password' => 'pass',
      ],
    ],
    ...