Skip to content

About

UserManager component

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

237 Commits

Folders and files

Repository files navigation

webware-usermanager

PHP Version Latest Version License Continuous Integration codecov Mutation testing badge

Mezzio user registration, authentication, email verification, and admin user management for the webware-* package family. Ships with a message-bus driven command layer, PhpDb-backed user repository, PSR-15 middleware for login and registration flows, HTMX-aware request handlers, and a webware-admin dashboard widget.

Installation

composer require webware/webware-usermanager

Provider load order

webware/webware-core aliases Mezzio\Authentication\UserInterface to Webware\Core\UserInterface, and this package registers the implementation behind it. Register the providers in config/config.php in this order:

  1. Mezzio\Authentication\ConfigProvider
  2. Webware\Core\ConfigProvider
  3. Webware\UserManager\ConfigProvider

The component installer adds providers in the order packages were installed, which is not necessarily this order - check config/config.php after installing and reorder if needed. Any provider that declares an entry for Mezzio\Authentication\UserInterface competes for the same service name and the last one aggregated wins, so load mezzio/mezzio-authentication first, then webware/webware-core, then this package.

This package also aliases Mezzio\Authentication\UserRepositoryInterface to its Repository\UserRepository, whose authenticate() implements that contract (the return type is narrowed to the user entity this package hands out). Mezzio\Authentication\ConfigProvider declares no service for that name, so the alias does not compete with anything. A host can type against either Webware\UserManager\Repository\UserRepositoryInterface or the Mezzio interface; this package replaces the authentication workflow while keeping the contract shape, so a hand-rolled Mezzio repository can be removed without touching type hints.

Documentation

See docs/.

About

UserManager component

Resources

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages