php-extended/php-ldap-filter-parser-object

该包已被废弃且不再维护。作者建议使用php-extended/php-ldap-filter-object包代替。

php-extended/php-ldap-filter-parser-interface 库的实现

4.0.15 2021-06-25 18:14 UTC

This package is auto-updated.

Last update: 2021-06-27 08:10:02 UTC


README

php-extended/php-ldap-filter-parser-interface 库的实现。

coverage build status

安装

通过 composer 安装此库。从官网下载 composer.phar。然后将以下内容添加到你的 composer.json 文件中:

	"require": {
		...
		"php-extended/php-ldap-filter-parser-object": "^4"
		...
	}

然后运行 php composer.phar update 来安装此库。此库中所有类的自动加载都通过 composer 的自动加载器完成。

基本用法

此库通过以下构造函数创建 dn


use PhpExtended\Ldap\LdapFilterParser;

$parser = new LdapFilterParser();
$ldn = $parser->parseString('(&(objectClass=Person)(sn=John)(cn=Snow))');

// $ldn instanceof LdapFilterNodeMultiInterface AND node with
// three children which are each one of the nodes

许可证

MIT (见许可证文件)。