PHPackages                             jschaedl/php-ldapfilter - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. jschaedl/php-ldapfilter

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

jschaedl/php-ldapfilter
=======================

ldap filter api utility

07PHP

Since May 24Pushed 10y ago1 watchersCompare

[ Source](https://github.com/jschaedl/php-ldapfilter)[ Packagist](https://packagist.org/packages/jschaedl/php-ldapfilter)[ RSS](/packages/jschaedl-php-ldapfilter/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

PHP LDAP Filter Library
=======================

[](#php-ldap-filter-library)

This is a PHP library to create LDAP filters with a simple to use object oriented api. It is build for PHP 5.3+.

[![Build Status](https://camo.githubusercontent.com/741a2e20ec794d49ed796682013fd169153fb4a953169c0264ac3ad2434553e0/68747470733a2f2f7472617669732d63692e6f72672f6a7363686165646c2f7068702d6c64617066696c7465722e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/jschaedl/php-ldapfilter)[![PHP Version](https://camo.githubusercontent.com/3ca7edd1dfd3a02990799e336113188aa5cfd0a61ace5cc1c6246aecff814598/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f76657273696f6e2d504850253230352e332532422d6c69676874677265792e737667)](https://camo.githubusercontent.com/3ca7edd1dfd3a02990799e336113188aa5cfd0a61ace5cc1c6246aecff814598/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f76657273696f6e2d504850253230352e332532422d6c69676874677265792e737667)

---

API usage
---------

[](#api-usage)

### LDAP filters

[](#ldap-filters)

Currently, the library supports to create the following LDAP filters:

CriteriasDescriptionFilter example`=`*equals to*`(firstname = Jan)``~`*differs from*`(lastname ~ Schaedlich)``>`*more than*`(height > 1.6)``>=`*more or equals*`(height >= 1.6)``
