php-extended / php-ldap-dn-object
A library that implements the php-ldap-dn-interface library
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-10-01 00:14:03 UTC
README
A library that implements the php-ldap-dn-interface library
Installation
The installation of this library is made via composer and the autoloading of all classes of this library is made through their autoloader.
- Download
composer.phar
from their website. - Then run the following command to install this library as dependency :
php composer.phar php-extended/php-ldap-dn-object ^7
Basic Usage
This library creates dn with the following constructor :
use PhpExtended\Ldap\LdapDistinguishedName;
$ldn = new LdapDistinguishedName([
'c' => 'fr',
'o' => 'foo',
'ou' => 'bar',
'cn' => 'baz',
]);
// gets "cn=baz,ou=bar,o=foo,c=fr"
To parse the distinguished names, do :
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"
License
MIT (See license file).