Download the PHP package kriss/webman-auth without Composer

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

webman-tech/auth

本项目是从 webman-tech/components-monorepo 自动 split 出来的,请勿直接修改

简介

webman 认证授权插件,提供高可扩展的认证授权功能。

该插件通过模块化设计,支持多种认证方式和用户体系,解决了 webman 原生认证功能相对简单的问题,适用于复杂的多用户系统场景。

功能特性

安装

核心组件

Auth 认证入口类

Auth 是认证功能的主要入口,通过 guard() 获取指定名称的 guard 实例,通过 getAuthManager() 获取认证管理器。

AuthManager 认证管理器

AuthManager 负责管理多个 guard 实例,支持单例模式避免重复创建。

Guard 认证守卫

GuardInterface,提供用户登录(login())、退出(logout())、游客检查(isGuest())、获取当前用户(getUser())及用户 ID(getId())等操作。

认证方法

所有认证方法实现 AuthenticationMethodInterface,内置实现包括:

认证失败处理器

所有认证失败处理器实现 AuthenticationFailureHandlerInterface,内置实现包括:

身份接口

中间件

扩展

可通过实现对应接口来自定义认证方法(AuthenticationMethodInterface)、认证失败处理器(AuthenticationFailureHandlerInterface),或继承 Guard 类扩展守卫行为。

AI 辅助


All versions of webman-auth with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
webman-tech/common-utils Version ^5.0 || dev-main
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 kriss/webman-auth contains the following files

Loading the files please wait ...