Download the PHP package genaker/free-admin without Composer

On this page you can find all versions of the php package genaker/free-admin. 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 free-admin

Genaker FreeAdmin Module

Overview

This module allows free admin login when the Magento_Backend module is disabled in app/etc/config.php.

How It Works

The module uses a before plugin on Magento\Backend\Model\Auth::login() method to:

  1. Security Check: Never bypass authentication in production mode
  2. Check if Magento_Backend module is disabled using Magento's ModuleList and DeploymentConfig classes
  3. If disabled AND not in production mode, bypass normal authentication by:
    • First trying to find admin user by the provided email/username
    • If not found, falling back to the first available admin user
  4. If enabled or in production mode, proceed with normal authentication

Installation

Method 1: Manual Installation

  1. Copy the module to app/code/Genaker/FreeAdmin/
  2. Enable the module:

  3. Run setup:

Method 2: Composer Installation

  1. Add the module to your project's composer.json:

  2. Install via Composer:

  3. Run setup:

Usage

To Enable Free Admin Access:

  1. Set backend/auth to false in your deployment configuration (e.g., app/etc/env.php):

  2. Clear caches:

  3. Now any username/password combination will work for admin login

To Disable Free Admin Access:

  1. Set backend/auth to true or remove the configuration in your deployment configuration:

  2. Clear caches:

Security Warning

⚠️ IMPORTANT: This module is for development/testing purposes only.

Module Structure

Troubleshooting

Module Not Working

  1. Check if module is enabled: php bin/magento module:status Genaker_FreeAdmin
  2. Verify plugin is loaded: php bin/magento setup:di:compile
  3. Clear caches: php bin/magento cache:flush
  4. We need also disable TWO FACTOR Auth modules

Customization

To modify the authentication bypass logic, edit SimpleLoginPlugin.php in the beforeLogin method.

Support

For issues or questions, check the module logs or contact the development team.


All versions of free-admin with dependencies

PHP Build Version
Package Version
Requires magento/framework Version >=103.0.0
magento/module-backend Version >=100.0.0
magento/module-user Version >=100.0.0
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 genaker/free-admin contains the following files

Loading the files please wait ...