1. Go to this page and download the library: Download yetopen/yii2-usuario-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/ */
[
'class' => 'yii\log\FileTarget', // or another target if you prefer
// Gets all the log and exceptions messages of the module
'categories' => [
'YII2_USUARIO_LDAP',
'yetopen\usuarioLdap\NoLdapUserException',
'yetopen\usuarioLdap\LdapConfigurationErrorException',
'yetopen\usuarioLdap\MultipleUsersFoundException',
'yetopen\usuarioLdap\RoleNotFoundException',
],
'logFile' => '@runtime/logs/usuario_ldap.log', // or the log file destination that you prefer
]
php composer.phar
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.