PHPackages                             rroycedev/roycedatabase-laravel - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. rroycedev/roycedatabase-laravel

ActiveProject[Database &amp; ORM](/categories/database)

rroycedev/roycedatabase-laravel
===============================

Allows delevepors to generate laravel database migrations and models

020PHP

Since Apr 11Pushed 8y agoCompare

[ Source](https://github.com/rroycedev/roycedatabase-laravel)[ Packagist](https://packagist.org/packages/rroycedev/roycedatabase-laravel)[ RSS](/packages/rroycedev-roycedatabase-laravel/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

RoyceDatabase - Laravel version 1.0.67
======================================

[](#roycedatabase---laravel-version-1067)

Requirements
------------

[](#requirements)

Version 1.0.7

To use Adldap2-Laravel, your application and server must meet the following requirements:

- Laravel 5.\*
- PHP 7.0 or greater
- PHP LDAP extension enabled
- An LDAP Server

Index
-----

[](#index)

- [Installation](#installation)
- [Usage](#usage)
- Auth Driver
    - [Installation &amp; Basic Setup](docs/auth.md#installation)
    - [Quick Start - From Scratch](docs/quick-start.md)
    - [Upgrading](docs/auth.md#upgrading-from-3-to-4)
    - [Features](docs/auth.md#features)
        - [Providers](docs/auth.md#providers)
        - [Scopes](docs/auth.md#scopes)
        - [Rules](docs/auth.md#rules)
        - [Events](docs/auth.md#events)
        - [Synchronizing Attributes](docs/auth.md#syncing-attributes)
        - [Model Binding](docs/auth.md#model-binding)
        - [Login Fallback](docs/auth.md#fallback)
        - [Single Sign On (SSO) Middleware](docs/auth.md#middleware)
        - [Password Synchronization](docs/auth.md#password-synchronization)
        - [Importing Users](docs/importing.md)

Installation
------------

[](#installation)

Run the following command in the root of your project:

```
composer require adldap2/adldap2-laravel
```

> **Note**: If you are using laravel 5.5 or higher you can skip the service provider and facade registration and continue with publishing the configuration file.

Once finished, insert the service provider in your `config/app.php` file:

```
Adldap\Laravel\AdldapServiceProvider::class,
```

Then insert the facade:

```
'Adldap' => Adldap\Laravel\Facades\Adldap::class
```

Publish the configuration file by running:

```
php artisan vendor:publish --tag="adldap"
```

Now you're all set!

Usage
-----

[](#usage)

First, configure your LDAP connection in the `config/adldap.php` file.

Then, you can perform methods on your default connection through the `Adldap` facade like so:

```
use Adldap\Laravel\Facades\Adldap;

// Finding a user:
$user = Adldap::search()->users()->find('john doe');

// Searching for a user:
$search = Adldap::search()->where('cn', '=', 'John Doe')->get();

// Running an operation under a different connection:
$users = Adldap::getProvider('other-connection')->search()->users()->get();

// Creating a user:
$user = Adldap::make()->user([
    'cn' => 'John Doe',
]);

// Saving a user:
$user->save();
```

If you do not specify an alternate connection using `getProvider()`, your `default` connection will be utilized for all methods.

Upon performing operations without specifying a connection, your default connection will be connected to and bound automatically using your configured username and password.

If you would prefer, you can also inject the Adldap interface into your controllers, which gives you access to all of your LDAP connections and resources as the facade.

```
use Adldap\AdldapInterface;

class UserController extends Controller
{
    /**
     * @var Adldap
     */
    protected $ldap;

    /**
     * Constructor.
     *
     * @param AdldapInterface $adldap
     */
    public function __construct(AdldapInterface $ldap)
    {
        $this->ldap = $ldap;
    }

    /**
     * Displays the all LDAP users.
     *
     * @return \Illuminate\View\View
     */
    public function index()
    {
        $users = $this->ldap->search()->users()->get();

        return view('users.index', compact('users'));
    }

    /**
     * Displays the specified LDAP user.
     *
     * @return \Illuminate\View\View
     */
    public function show($id)
    {
        $user = $this->ldap->search()->findByGuid($id);

        return view('users.show', compact('user'));
    }
}
```

To see more usage in detail, please visit the [Adldap2](http://github.com/Adldap2/Adldap2) repository.

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/2b857889ebc8198c2d6c38c5a79a8d8f5d5937a9e90ef381f4dcefbe097614e1?d=identicon)[rroycedev](/maintainers/rroycedev)

---

Top Contributors

[![rroycedev](https://avatars.githubusercontent.com/u/37022756?v=4)](https://github.com/rroycedev "rroycedev (24 commits)")

### Embed Badge

![Health badge](/badges/rroycedev-roycedatabase-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/rroycedev-roycedatabase-laravel/health.svg)](https://phpackages.com/packages/rroycedev-roycedatabase-laravel)
```

###  Alternatives

[doctrine/orm

Object-Relational-Mapper for PHP

10.2k285.3M6.2k](/packages/doctrine-orm)[jdorn/sql-formatter

a PHP SQL highlighting library

3.9k115.1M102](/packages/jdorn-sql-formatter)[illuminate/database

The Illuminate Database package.

2.8k52.4M9.4k](/packages/illuminate-database)[mongodb/mongodb

MongoDB driver library

1.6k64.0M546](/packages/mongodb-mongodb)[ramsey/uuid-doctrine

Use ramsey/uuid as a Doctrine field type.

90340.3M211](/packages/ramsey-uuid-doctrine)[reliese/laravel

Reliese Components for Laravel Framework code generation.

1.7k3.4M16](/packages/reliese-laravel)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
