php-extended / php-ldap-dn-object
实现 php-ldap-dn-interface 库的库
7.0.6
2024-07-31 13:41 UTC
Requires
- php: >=8.0
- php-extended/php-ldap-dn-interface: ^7
- php-extended/php-parser-object: ^7
Requires (Dev)
- dev-master
- 7.0.6
- 7.0.5
- 7.0.4
- 7.0.3
- 7.0.2
- 7.0.1
- 7.0.0
- 6.0.7
- 6.0.6
- 6.0.5
- 6.0.4
- 6.0.3
- 6.0.2
- 6.0.1
- 6.0.0
- 5.0.1
- 5.0.0
- 4.0.2
- 4.0.1
- 4.0.0
- 3.3.8
- 3.3.7
- 3.3.6
- 3.3.5
- 3.3.4
- 3.3.3
- 3.3.2
- 3.3.1
- 3.3.0
- 3.2.17
- 3.2.16
- 3.2.15
- 3.2.14
- 3.2.13
- 3.2.12
- 3.2.11
- 3.2.10
- 3.2.9
- 3.2.8
- 3.2.7
- 3.2.6
- 3.2.5
- 3.2.4
- 3.2.3
- 3.2.2
- 3.2.1
- 3.2.0
- 3.1.1
- 3.1.0
- 3.0.4
- 3.0.3
- 3.0.2
- 3.0.1
- 3.0.0
This package is auto-updated.
Last update: 2024-08-31 11:47:13 UTC
README
实现 php-ldap-dn-interface 库的库
安装
此库的安装通过 composer 完成,所有类的自动加载通过其自动加载器完成。
- 从 他们的网站 下载
composer.phar
。 - 然后运行以下命令将此库作为依赖项安装
php composer.phar require php-extended/php-ldap-dn-object ^7
基本用法
此库使用以下构造函数创建 dn
use PhpExtended\Ldap\LdapDistinguishedName;
$ldn = new LdapDistinguishedName([
'c' => 'fr',
'o' => 'foo',
'ou' => 'bar',
'cn' => 'baz',
]);
// gets "cn=baz,ou=bar,o=foo,c=fr"
要解析区分名称,请执行
use PhpExtended\Ldap\LdapDistinguishedNameParser;
$parser = new LdapDistinguishedNameParser();
$ldn = $parser->parse('cn=baz,ou=bar,o=foo,c=fr');
$ldn->getStringRepresentation(); // gets "cn=baz,ou=bar,o=foo,c=fr"
许可证
MIT (见 许可证文件).