Download the PHP package padosoft/laravel-iam-directory without Composer

On this page you can find all versions of the php package padosoft/laravel-iam-directory. 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 laravel-iam-directory

Laravel IAM โ€” Directory

Bring your LDAP / Active Directory into Laravel IAM โ€” safely.
Directory login, Just-In-Time provisioning and group โ†’ role mapping, hardened against the classic identity-sync pitfalls.

Tests Latest Version on Packagist Total Downloads PHP Version

๐Ÿ“– Read the documentation โ†’


Why this package

Most teams already have their users in LDAP or Active Directory. Wiring that into an app usually means one of two bad outcomes: a brittle hand-rolled bind that silently fails open, or a "sync everything" job that happily takes over local accounts, keeps stale privileges forever, and lets a single wrong row in a group-mapping table escalate a user to admin.

laravel-iam-directory is the optional Directory module of Laravel IAM. It authenticates against your directory, provisions users Just-In-Time on first login, and keeps their IAM roles in sync with their directory groups โ€” while closing every one of those pitfalls by design:

The real LDAP transport (LdapRecord) is optional and isolated: the core works against any DirectoryConnector, so you can test, map and provision without ext-ldap installed.

Features

Use cases

Installation

Requirements: PHP 8.3+, Laravel 13, and a running Laravel IAM server (padosoft/laravel-iam-server).

The real LDAP/Active Directory transport is optional and needs the PHP ext-ldap extension:

Without it, the core (group mapping + JIT) still works against any DirectoryConnector you provide โ€” handy for tests and non-LDAP sources.

Publish the config:

Quick start

1. Configure the directory & mapping

config/iam-directory.php:

2. Authenticate a user against the directory

3. The roles stay in sync โ€” automatically

On every login the provisioner re-syncs the user's directory-sourced roles:

4. Use a custom (non-LDAP) source

Implement DirectoryConnector to provision from any source โ€” no ext-ldap needed:

โš ๏ธ Security model. This module is deliberately strict: it refuses account takeover by email collision, revokes stale directory roles on sync, and never grants protected_roles from the directory. Don't relax these in a custom connector โ€” see docs/provisioning-and-security.md.

Ecosystem

Package Role
laravel-iam-contracts Shared interfaces & DTOs โ€” the dependency root
laravel-iam-server The IAM server: identity, PDP, OAuth/OIDC, audit, governance, Admin API & panel
laravel-iam-client Client for apps consuming Laravel IAM: middleware, Gate adapter
laravel-iam-ai Optional AI module: advisory-only governance
laravel-iam-directory (this repo) Optional directory module: LDAP / Active Directory (LdapRecord); SCIM in v2
laravel-iam-bridge-spatie-permission Migration bridge from spatie/laravel-permission

Documentation

๐Ÿ“– Full documentation: doc.laravel-iam-directory.padosoft.com โ€” a 22-page docmd site with semantic search, covering:

The Markdown sources live in docs-site/docs/; the site is built with docmd and deployed to Cloudflare Pages.

Security

Laravel IAM is fail-closed by design. This module adds directory-specific hardening: anti-takeover (email collision โ†’ conflict), stale-privilege revocation on sync, and protected_roles that the directory can never grant. The directory assigns roles; the PDP, not this module, decides allow/deny. If you discover a security issue, email [email protected] rather than opening a public issue.

License

MIT ยฉ Padosoft. See LICENSE.


All versions of laravel-iam-directory with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
padosoft/laravel-iam-contracts Version ^1.0
padosoft/laravel-iam-server Version ^1.0
spatie/laravel-package-tools Version ^1.16
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 padosoft/laravel-iam-directory contains the following files

Loading the files please wait ...