jschaedl/php-ldapfilter
Composer 安装命令:
composer require jschaedl/php-ldapfilter
包简介
ldap filter api utility
README 文档
README
This is a PHP library to create LDAP filters with a simple to use object oriented api. It is build for PHP 5.3+.
API usage
LDAP filters
Currently, the library supports to create the following LDAP filters:
| Criterias | Description | Filter example |
|---|---|---|
= |
equals to | (firstname = Jan) |
~ |
differs from | (lastname ~ Schaedlich) |
> |
more than | (height > 1.6) |
>= |
more or equals | (height >= 1.6) |
< |
less than | (age < 20) |
<= |
less or equals | (age <= 20) |
| Operator | Description | Filter example |
|---|---|---|
! |
not | !(age<10) |
& |
and | &(name=Schaedlich)(firstname=Jan) |
PIPE |
or | PIPE(age<10)(male=true) |
| wildcards | matches all | &(firstname=J*)(name=Sch?) |
| types | conforms to | (objectClass=Person) |
Example
...
Unit Testing
This repository uses PHPUnit and Composer. For running Unit Tests you have to run composer install to install this package's dependencies. After that you can run the test via:
phpunit -c tests/phpunit.xml tests/
Author
License
MIT Public License
统计信息
- 总下载量: 7
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-05-24