php-extended/php-ldap-dn-parser-object

This package is abandoned and no longer maintained. The author suggests using the php-extended/php-ldap-dn-object package instead.

An implementation of the php-extended/php-ldap-dn-parser-interface library

4.0.17 2021-06-25 17:52 UTC

This package is auto-updated.

Last update: 2021-06-27 08:34:40 UTC


README

An implementation of the php-extended/php-ldap-dn-parser-interface library.

coverage build status

Installation

The installation of this library is made via composer. Download composer.phar from their website. Then add to your composer.json :

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

Then run php composer.phar update to install this library. The autoloading of all classes of this library is made through composer's autoloader.

Basic Usage

This library creates dn with the following constructor :


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).