PHPackages                             akawalko/laminas-auth-redbean-adapter - 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. [Authentication &amp; Authorization](/categories/authentication)
4. /
5. akawalko/laminas-auth-redbean-adapter

ActiveLibrary[Authentication &amp; Authorization](/categories/authentication)

akawalko/laminas-auth-redbean-adapter
=====================================

Laminas authentication adapter using a lightweight ORM called RedBeanPhp

v1.0.0(2y ago)06MITPHPPHP &gt;=7.4

Since Dec 1Pushed 2y ago1 watchersCompare

[ Source](https://github.com/akawalko/laminas-auth-redbean-adapter)[ Packagist](https://packagist.org/packages/akawalko/laminas-auth-redbean-adapter)[ RSS](/packages/akawalko-laminas-auth-redbean-adapter/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (3)Versions (2)Used By (0)

laminas-auth-redbean-adapter
============================

[](#laminas-auth-redbean-adapter)

What is this
------------

[](#what-is-this)

It's an authentication adapter for a great library called [Laminas\\Authentication](https://github.com/laminas/laminas-authentication)

It focuses on replacing the default database adapter, Laminas\\Db\\Adapter\\Adapter from library [Laminas\\Db](https://github.com/laminas/laminas-db), with an adapter derived from a lightweight ORM called [RedBeanPHP](https://github.com/gabordemooij/redbean "ORM layer that creates models, config and database on the fly").

Replacing the database adapter necessitated replacing Laminas\\Db\\Sql\\Select (part of the same [Laminas\\Db](https://github.com/laminas/laminas-db) library) with something that would provide similar functionality. To avoid wasting dozens of hours writing my custom SQL query builder, I opted to use an excellent library that does not require establishing a connection to the database to generate a query.

[SQL Query Builder](https://github.com/nilportugues/php-sql-query-builder) by Nil Portugués Calderó provides an elegant lightweight and efficient SQL Query Builder with fluid interface SQL syntax supporting bindings and complicated query generation.

Apart from replacing the database adapter and the SQL query builder, the main improvement over the original is the ability to have full control over the number of columns returned from the database. [Example no. 3](https://github.com/akawalko/laminas-auth-redbean-adapter/blob/main/examples/example_03.php) shows how this can be done. This can be a big advantage for tables that have a large number of columns. The minimum number of columns returned is 2, one for the identity column, the other for the password. For obvious reasons, a column with user ID will also be useful, but it is not required.

Install
-------

[](#install)

### Require

[](#require)

- php: &gt;=7.4
- gabordemooij/redbean (can be installed in 2 ways, that's why I omitted this package in composer.json)

```
composer require akawalko/laminas-auth-redbean-adapter

```

Usage
-----

[](#usage)

After installing the package, read the Laminas\\Authentication documentation at

Be sure to also check out the folder with examples I have prepared for you:

Before you run any example, make sure you have created a database and a user account that provides access to it, and have also executed the SQL commands from the db\_structure\_mysql.sql (or db\_structure\_sqlite.sql) and db\_entries.sql files.

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity42

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.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

894d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/8fca236fe992bd3222344ed9cb9296e25b3c3753dc18054d2175a5926c6be9a1?d=identicon)[akawalko](/maintainers/akawalko)

---

Top Contributors

[![akawalko](https://avatars.githubusercontent.com/u/7594428?v=4)](https://github.com/akawalko "akawalko (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/akawalko-laminas-auth-redbean-adapter/health.svg)

```
[![Health](https://phpackages.com/badges/akawalko-laminas-auth-redbean-adapter/health.svg)](https://phpackages.com/packages/akawalko-laminas-auth-redbean-adapter)
```

###  Alternatives

[namshi/jose

JSON Object Signing and Encryption library for PHP.

1.8k99.6M101](/packages/namshi-jose)[illuminate/auth

The Illuminate Auth package.

9327.3M1.0k](/packages/illuminate-auth)[beatswitch/lock

A flexible, driver based Acl package for PHP 5.4+

870304.7k2](/packages/beatswitch-lock)[amocrm/amocrm-api-library

amoCRM API Client

182728.5k6](/packages/amocrm-amocrm-api-library)[kokspflanze/bjy-authorize

Laminas\\Acl based firewall system for Laminas dispatch protection

20178.2k4](/packages/kokspflanze-bjy-authorize)[openeuropa/oe_authentication

Authentication against the OpenEuropa Authentication service.

17314.8k2](/packages/openeuropa-oe-authentication)

PHPackages © 2026

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