daverandom/ldapi
Composer 安装命令:
composer require daverandom/ldapi
包简介
Simple object oriented wrapper around ext/ldap
关键字:
README 文档
README
A simple object oriented wrapper around PHP's LDAP extension. No frills, just a slightly cleaner API for use in object oriented applications.
Requirements
- PHP 5.4.0 or higher
- ext/ldap
Installation
Preferably via Composer.
Example usage
<?php
$link = new LDAPi\Directory;
try {
$link->connect('127.0.0.1', 389);
$link->bind('Manager', 'managerpassword');
$result = $link->search('cn=Users', 'objectClass=User', ['cn']);
$entry = $result->firstEntry();
do {
print_r($entry->getAttributes());
} while($entry = $entry->nextEntry());
} catch(LDAPi\DirectoryOperationFailureException $e) {
exit('An error occurred: ' . $e->getMessage());
}
统计信息
- 总下载量: 25
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2013-09-24