Download the PHP package toshy62/ldapobjectbundle without Composer
On this page you can find all versions of the php package toshy62/ldapobjectbundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package ldapobjectbundle
LdapObjectBundle : Symfony2 Bundle for OpenLdapObject
LdapObjectBundle is a Symfony2 Bundle. It is an interface for retrieving, modifying and persisting LDAP entities. It requires an another Bundle : the OpenLdapObject Bundle which is the simple connector LDAP using PHP's native LDAP functions. It can be use with Symfony version 2, 3 and 4, and add a system of complex Query and Conditions LDAP.
Installation
Step 1: Download the Bundle
Open a command console, enter your project directory and execute the following command to download the latest stable version of this bundle:
This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.
Or add the bundle in your composer.json
and launch this command composer update
Step 2: Configuration
Add configuration keys in the app/config/parameters.yml
and app/config/parameters.yml.dist
and configure for your openldap :
Add configuration keys for the bundle in app/config/config.yml
Step 3: Enable the Bundle
Then, enable the bundle by adding the following line in the app/AppKernel.php
file of your project:
Step 4: Use the Bundle
To use the LdapObjectBundle you have to add annotation to an entity like this example:
For Accounts :
- Name of each attributes are the ldap object field
- Column : Use this annotation to type the ldap object field (string or array)
- Entity : Use this annotation to attribute to a php entity class an ldapObjectClass
- Dn : Use this annotation to build the dn with twig syntaxe
After you can use entity like this example:
you also can set complex request ldap :
For Groups :
After you can use entity like this example:
For Structures :
After you can use entity like this example:
All versions of ldapobjectbundle with dependencies
symfony/framework-bundle Version ~7.0
openldapobject/openldapobject Version ~1.0,>=1.1