gizmocraft / zendframework1-ldap
Zend Framework 1 Ldap component
2.0.0
2026-11-24 11:40 UTC
Requires
- php: >=8.5
- gizmocraft/zendframework1-config: ^3.0.0
- gizmocraft/zendframework1-crypt: ^2.0.0
- gizmocraft/zendframework1-date: ^2.0.0
- gizmocraft/zendframework1-exception: ^2.0.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.95.32
- phpro/grumphp-shim: ^2.27.2
- phpstan/phpstan: ^2.3.7
- phpunit/phpunit: ^13.4.8
Suggests
- ext-iconv: If available (and mbstring is not) will be used for encoding conversion
- ext-json: Required if using toJson conversion on Ldap Node
- ext-ldap: Required for this component
- ext-mbstring: If available, multibyte functions will be used
Provides
None
Conflicts
None
Replaces
None
README
This is just the Zend_Ldap component extracted from our fork of the Zend Framework 1 repo (https://github.com/gizmocraftcom/zf1).
Forked from https://github.com/diablomedia/zf1-ldap, adapted for PHP 8.5 and 8.6.
Notes
- Requires
ext-ldap. Connection and result handles areLDAP\Connection/LDAP\Resultobjects (PHP 8.1+);Zend_Ldap::getResource()returns anLDAP\Connection. - Sorting search results (the
$sortargument ofZend_Ldap::search()/searchEntries()and thesortoption;reverseSortalone still reverses the result order) needsldap_sort(), which was removed in PHP 8.0. Passing a sort attribute throwsZend_Ldap_Exception; sort the returned entries in PHP instead. - The online tests need an LDAP server and are skipped unless
TESTS_ZEND_LDAP_ONLINE_ENABLEDand the otherTESTS_ZEND_LDAP_*constants are set (for example in a local copy ofphpunit.xml.dist). Originally forked from the upstream repository https://github.com/diablomedia/zf1-ldap. Copyright and license of the original authors are kept in LICENSE.txt.