https://github.com/daverandom/simpleldap
Extremely succinct object oriented LDAP client API
https://github.com/daverandom/simpleldap
Last synced: about 2 months ago
JSON representation
Extremely succinct object oriented LDAP client API
- Host: GitHub
- URL: https://github.com/daverandom/simpleldap
- Owner: DaveRandom
- License: mit
- Created: 2013-09-25T17:51:13.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2015-03-24T17:17:51.000Z (about 11 years ago)
- Last Synced: 2025-02-26T02:27:24.680Z (over 1 year ago)
- Language: PHP
- Size: 135 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license
Awesome Lists containing this project
README
SimpleLDAP
==========
An extremely succinct object oriented LDAP client API for PHP. Uses some dirty tricks to make code that consumes LDAP directories a lot shorter to write, while (hopefully) remaining fairly readable.
Requirements
------------
- PHP 5.4.0 or higher
- ext/ldap
- The [LDAPi](https://github.com/DaveRandom/LDAPi) library
Installation
------------
Preferably via [Composer](http://getcomposer.org/).
Example usage
-------------
This example produces the same result as the example for LDAPi
create('ldap://Manager:managerpassword@127.0.0.1:389');
foreach ($link->search('cn=Users', 'objectClass=User', ['cn']) as $entry) {
print_r($entry->getAttributes());
}