Download the PHP package dreamscapes/ldap-core without Composer

On this page you can find all versions of the php package dreamscapes/ldap-core. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package ldap-core

Ldap Core

Build Status Built with GNU Make

Object-oriented implementation of PHP's native ldap functions

About

This small library provides access to ldap functions in a nice, object-oriented implementation.

Its purpose is not to provide fancy extra functionality for ldap interaction, but only to provide an object-level encapsulation around native PHP functions in a way that makes sense for OOP world. As such, this library is intended either for those who prefer OOP programming style, for those who want to be able to test their ldap interaction or for those who would like to write their own libraries which provide that fancy extra functionality.

Installation

Requirements

Support for ldap_modify_batch and ldap_escape are also available as long as they are present in your current PHP version.

  • ldap_modify_batch - available in PHP 5.4 branch since 5.4.26 and in higher versions of PHP since 5.5.10
  • ldap_escape - available since PHP 5.6.0

Via Composer

composer require dreamscapes/ldap-core (visit Packagist for list of all available versions)

Usage

There are two classes - Dreamscapes\Ldap\Core\Ldap and Dreamscapes\Ldap\Core\Result, each of which implement part of the native ldap functions as instance methods (some functions which do not operate on the resource objects are static). The differentiating principle is simple - if the function deals with the state of the ldap connection, it is implemented in the first, whereas functions dealing with the data returned from ldap server (the result resource) are implemented in the latter class.

Deviations

All methods are named as close to the original functions as possible, although with some improvements:

  1. Ldap v3 protocol is used by default
  2. The ldap_ prefix is removed from all method names
  3. The method names are camelCased instead of underscore_based
  4. All methods return data by returning them and not by populating variables passed as references
  5. Some functions are not implemented (usually because they are redundant)
  6. Exceptions are thrown if the ldap protocol encounters an error, and standard PHP warnings and errors are suppressed in most cases

Example

Documentation

Online API documentation is available here. To generate API documentation offline:

Documentation is now available at ./docs/index.html

License

This software is licensed under the BSD (3-Clause) License. See the LICENSE file for more information.


All versions of ldap-core with dependencies

PHP Build Version
Package Version
Requires php Version >=5.4.0
ext-ldap Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package dreamscapes/ldap-core contains the following files

Loading the files please wait ....