Installation guide
This content is not available in your language yet.
Requirements
Section titled “Requirements”- PHP 8.3.25 or later on the 8.3 branch, or PHP 8.4.12 or later.
- The PHP LDAP extension, enabled in the runtime that serves the application and not only in the CLI.
- Composer.
- Yii 2.0.55 or a later 2.0 patch, or Yii 22.0.
The package uses LdapRecord Core 4, not LdapRecord-Laravel. Core uses Illuminate Collections and Contracts without requiring the Laravel framework.
Install from Composer
Section titled “Install from Composer”Yii 2.0 uses Bower asset packages, and Composer reads repositories only from the application’s own composer.json. If
the application does not already configure a source for them, add Asset Packagist before installing:
composer config repositories.asset-packagist composer https://asset-packagist.orgInstall the package from your application directory:
composer require yii2-extensions/ldap:^0.1To use Yii 22 while it is a development branch, allow that version in the application root:
composer require yii2-extensions/ldap:^0.1 yiisoft/yii2:22.0.x-devInstall from a local checkout
Section titled “Install from a local checkout”To try unreleased changes, register a local checkout as a Composer path repository:
composer config repositories.ldap path /path/to/ldapcomposer require yii2-extensions/ldap:dev-main