Reusable CakePHP 5 infrastructure for account identity, account lifecycle, authentication integration,
ULIDs, request actor context, and created_by/modified_by auditing.
Foundation deliberately does not define product roles, profiles, permissions, layouts, or business onboarding. Applications extend accounts with associated profile tables and lifecycle event listeners.
Load Foundation as a CakePHP plugin and run its migrations:
bin/cake migrations migrate -p FoundationPlugin account routes are disabled by default. Enable them in host configuration with:
Configure::write('Foundation.routes.enabled', true);The host application remains responsible for adding authentication middleware and using
Foundation\Authentication\AuthenticationServiceFactory from its
AuthenticationServiceProviderInterface implementation.
See config/foundation.php for safe defaults and extension points.
This project is licensed under the BSD 3-Clause License.
Copyright (c) 2026, Chris Valliere
See the License file for deatails.