Download the PHP package akawalko/laminas-auth-redbean-adapter without Composer

On this page you can find all versions of the php package akawalko/laminas-auth-redbean-adapter. 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 laminas-auth-redbean-adapter

laminas-auth-redbean-adapter

What is this

It's an authentication adapter for a great library called Laminas\Authentication

It focuses on replacing the default database adapter, Laminas\Db\Adapter\Adapter from library Laminas\Db, with an adapter derived from a lightweight ORM called RedBeanPHP.

Replacing the database adapter necessitated replacing Laminas\Db\Sql\Select (part of the same 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 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 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

Require

Usage

After installing the package, read the Laminas\Authentication documentation at https://docs.laminas.dev/laminas-authentication/

Be sure to also check out the folder with examples I have prepared for you: https://github.com/akawalko/laminas-auth-redbean-adapter/tree/main/examples

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.


All versions of laminas-auth-redbean-adapter with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
laminas/laminas-authentication Version ^2
nilportugues/sql-query-builder Version ^1.8
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 akawalko/laminas-auth-redbean-adapter contains the following files

Loading the files please wait ....