php-extended/php-ldap-object

A library that implements the php-ldap-interface package


README

A library that implements the php-ldap-interface package

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-object": "^3"
		...
	}

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 is based on the ActiveRecord pattern, inspired by the implementation of the Yii framework for database related record classes, without the validation part (which should be done with another part of your favorite framework form component).

For it to work, you need to extend the PhpExtended\Ldap\LdapRecord class with your model classes. The model classes will have a mandatory attribute, which is their distinguished name, and all other attributes are up to you to be defined.

License

MIT (See license file).