Download the PHP package exceed/exauth without Composer

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

exAuth — Extended Authentication for CodeIgniter 4

Coverage Status

exAuth is an authentication and authorization library for CodeIgniter 4, created for developers who want the modern multi-authentication power of CodeIgniter Shield (Session, Tokens, HMAC, JWT, ChainAuth) but prefer the simplicity of Myth/Auth's approach — where groups and permissions are managed in the database, not hardcoded in config files.

Instead of editing a PHP config file every time you need a new role or permission, exAuth stores everything in database tables (auth_groups_users, auth_permissions_users) so you can manage them dynamically at runtime, just like Myth/Auth.

Project Notice

exAuth was built as a learning/analysis project bringing together the best of CodeIgniter Shield and Myth/Auth.

Shield is the official, maintained authentication library for CodeIgniter 4. Myth/Auth is the predecessor of Shield, now archived.

exAuth is not an official package. For production, the recommended library is CodeIgniter Shield.

Requirements

Features

New in v1.5.0

Installation

Composer

Manual

Clone or download the repo and add the namespace to app/Config/Autoload.php:

Configuration

New to exAuth? Follow the step-by-step Beginner Setup Guide — it takes you from zero to a working login/register/logout flow (and RBAC). Building an API? See the Beginner JWT Setup guide or the Access Tokens & HMAC guide.

The fastest way to configure everything is the setup command:

This publishes config, registers the exAuth helper, adds the auth routes, adjusts CSRF settings, and runs migrations. To do it manually, see the Beginner Setup Guide.

Overview

When installed, exAuth provides basic authentication: user registration, login/logout, forgotten password, magic-link login, and route protection via filters.

Routes are registered by adding this line to app/Config/Routes.php:

Views

Default views live in src/Views and are based on Bootstrap 5. To customize them, copy the files into your app's Views directory and adjust the view(...) calls, or override the paths in Config/exAuth.php.

Login field (email / username / both)

Like Shield and Myth-Auth, exAuth lets you choose which field users log in with. Configure it in Config/exAuth.php:

The login view submits a single login input; LoginController::loginPost() reads the config and resolves the user accordingly.

Services

auth

Provides access to the exAuth facade. Its main job is registering routes:

For login state and the current user, use the helper functions below (ex_logged_in(), ex_current_user(), etc.).

Helper Functions

exAuth comes with its own helper. Load it with helper('exAuth');.

Hint: Add 'exAuth' to the $helpers property of BaseController.php to have it globally available. The auth filters all pre-load this helper on filtered routes.

ex_auth()

Returns the authentication service instance (factory).

ex_logged_in()

Checks if any user is logged in. Returns true or false.

ex_current_user()

Returns the User entity for the current logged in user, or null.

ex_user_id()

Returns the current user's integer ID, or null.

ex_logout()

Logs out the current user.

Users

exAuth uses CodeIgniter Entities for the User object. User accounts live in the users table (email, username, password, active, status, etc.).

Assign a user to a group by inserting into the auth_groups_users table (the group name is stored as text), or use the CLI:

Restricting by Route

Filter Aliases

Filters are auto-registered via the Registrar pattern. You do not need to add them to Config/Filters.php manually.

Available filter aliases:

Global Restrictions

Restrict by URI pattern in app/Config/Filters.php:

Or globally:

Single Route

Route Groups

Chain Authentication Filter

Use the chain filter to try multiple authenticators in sequence:

Customization

See the Extending documentation.

Credits

Built from the best of two worlds: the Shield Foundation (CodeIgniter Shield) and the Myth-Auth community.


All versions of exauth with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
codeigniter4/framework Version >=4.3.5 <4.5.0 || ^4.5.1
firebase/php-jwt Version ^7.0.3
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 exceed/exauth contains the following files

Loading the files please wait ...