kumwe / business-schema
Portable physical schema blueprints, deterministic change plans and recovery values.
Requires
- php: ^8.5
- php-64bit: *
- ext-json: *
- ext-mbstring: *
- kumwe/business-definition: 0.1.2
- kumwe/sequence: 0.2.1
- psr/container: ^2.0
- ramsey/uuid: ^4.9
Requires (Dev)
- ext-zip: *
- laminas/laminas-servicemanager: ^4.0
- phpstan/phpstan: ^2.1
- phpunit/phpunit: ^12.0 || ^13.0
- squizlabs/php_codesniffer: ^4.0
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-09-12 15:03:43 UTC
README
Portable physical schema blueprints, deterministic change plans and recovery values
under Kumwe\BusinessSchema.
Installation
Requires 64-bit PHP 8.5 with JSON and mbstring. Pin an exact pre-1.0 release:
composer require kumwe/business-schema:0.1.3
Composer declares exact Business Definition and Sequence requirements. The version badge links published packages; default-branch CI reports package quality checks. Consumers separately verify exact releases and their Core integration.
Usage and Core contract
Construct values directly. Register Kumwe\BusinessSchema\ConfigProvider with your
ConfigAggregator for shared compiler and planner services. Core must bind
DefinitionSchemaLookup, FieldTypeDefinitionResolver and PhysicalNameCompiler;
there are no implicit authority or naming defaults. See the service map
and runnable consumer, which uses Laminas ServiceManager.
Use SchemaChangePlanner::dependencyHandles($definition) to discover outgoing
targets before resolving and compiling their blueprints under host authority.
Core retains database execution, authorization, transactions, fencing, DDL journals,
persistence and recovery. Package blueprints and approved plan checksums are detached
from caller references; constructing a plan does not grant permission to execute it.
Documentation
- Public API, architecture and integration
- Dependency contract and test ownership
- Release record, release process and changelog
Development
composer install composer check
The gate covers dependency evidence, syntax, architecture, behavior/conformance, static analysis, coding standards, public manifests, governance, audit, release automation and a fresh no-dev classmap-authoritative archive consumer. CI runs PHP 8.5 on Linux. Dependabot proposes grouped weekly dependency updates.
Existing releases remain fixed; source documentation updates ship in a subsequent release. Licensed under Apache-2.0.