kennofizet / packages-core-backend
There is no license information available for the latest version (dev-main) of this package.
Core base package for ecosystem — zones, servers, tokens, users
Package info
github.com/kennofizet/packages-core-backend
pkg:composer/kennofizet/packages-core-backend
dev-main
2026-05-07 05:54 UTC
Requires
- php: ^8.2
- illuminate/database: *
- illuminate/support: *
This package is auto-updated.
Last update: 2026-05-07 05:59:49 UTC
README
This package is the core base package for the Core ecosystem. It provides the foundational backend logic and data models that other packages depend on.
Purpose
This package handles the base settings and management for:
- Zone — Core zone model and configuration
- Zone Management — Zone CRUD operations, assignment, and lifecycle management
- Server — Server registration, settings, and connection management
- Token — Token definitions, issuance rules, and base token logic
- Season — Shared season master data scoped by zone (used by feature packages like workpoint)
Other packages (e.g. ********-backend) extend or consume the entities provided here. This package should be installed first as a dependency before any feature-level packages.
Installation
composer require kennofizet/packages-core-backend
Season Context
- Middleware resolves current season from the active season of current zone.
- The resolved value is exposed as request attribute
knf_core_user_season_id_current. BaseModelActions::currentUserSeasonId()provides the value in services/controllers.BaseModelnow auto-applies season global scope for models that haveseason_id.
Season Hooks
- Event class:
packages-core.season_event_class(defaultSeasonCreated) - Post-create listeners:
packages-core.after_season_created_listeners - Listener contract:
Kennofizet\PackagesCore\Contracts\AfterSeasonCreatedListener