Search by

webware / webware-core

tyrsson

Contracts and utilities for the webware-* ecosystem.

Package info

github.com/webinertia/webware-core

pkg:composer/webware/webware-core

Statistics

Installs: 2 482

Dependents: 3

Suggesters: 0

Stars: 0

Open Issues: 1

1.0.0-alpha.6 2026-09-21 03:09 UTC

README

PHP Version Latest Version License Continuous Integration codecov Mutation testing badge

Contracts and utilities for the webware-* ecosystem.

Installation

composer require webware/webware-core

Provider load order

This package declares an ecosystem-wide alias so that every consumer resolves the Mezzio authentication contract to the Webware implementation:

'aliases' => [
    Mezzio\Authentication\UserInterface::class => Webware\Core\UserInterface::class,
],

The implementation behind that alias is registered by webware/webware-usermanager, and mezzio/mezzio-authentication declares a factory for the same service name. Register the providers in this order in config/config.php so the alias is the final word on that key:

  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 keep the Webware providers after mezzio/mezzio-authentication, with core before usermanager.