ausus/entity-engine 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ausus/entity-engine

Composer 安装命令:

composer require ausus/entity-engine

包简介

AUSUS Entity Engine (L1) — content-addressed compile pipeline (Canonicalizer semantic normal form, Hasher, ClosureValidator) plus the bind/runtime half. EE-RFC-011 / EE-RFC-012.

README 文档

README

AUSUS 2.0 — Entity Engine (L1). The two halves of EE-RFC-011: the content-addressed compile pipeline (Canonicalizer → Hasher → ClosureValidator → EntitySchema) and the runtime (bindRuntimeEntity, with fail-closed authorization). Same semantics ⇒ same hash; binding never recompiles.

Installation

composer require ausus/entity-engine:^2.0

Dependencies

  • PHP 8.3+
  • ausus/kernel

Public surface

  • Ausus\Engine\Compile\Compilercompile(EntityDefinition[]): CompiledGraph (EntitySchema[] + SchemaIndex); atomic, any error produces nothing.
  • Ausus\Engine\Compile\{Canonicalizer, Hasher, ClosureValidator} — semantic normal form, SHA-256 content hash, the 16 closure invariants.
  • Ausus\Engine\Runtime\DefaultEntityEnginebind(EntitySchema, PersistenceDriver): RuntimeEntity.
  • Ausus\Engine\Runtime\DefaultAuthorizationEvaluator — fail-closed evaluation of the embedded Expression.

Minimal example

<?php
use Ausus\Engine\Runtime\DefaultEntityEngine;
use Ausus\Engine\Runtime\DefaultAuthorizationEvaluator;

$engine  = new DefaultEntityEngine(new DefaultAuthorizationEvaluator(), $repository);
$runtime = $engine->bind($repository->resolve('customer'), $driver);
$runtime->invoke('create', ['name' => 'Globex'], $context);

Documentation

See the canonical reference docs/v2/ and the Quick Start.

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 2
  • 依赖项目数: 2
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-06-29