jschaedl/php-ldapfilter 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

Build Status PHP Version

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

Jan Schädlich

License

MIT Public License

统计信息

  • 总下载量: 7
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-05-24