clutch-property-mgmt/business-domain
Composer 安装命令:
composer require clutch-property-mgmt/business-domain
包简介
Pure business domain models for Clutch Property Management. Contains framework-agnostic entities such as Property, Unit, Address, CompanyInfo, ContactInfo, and related value objects. Designed for Clean Architecture: zero infrastructure, no PDO, no external dependencies.
README 文档
README
Pure business domain models for Clutch Property Management. Contains framework-agnostic entities such as Property, Unit, Address, CompanyInfo, ContactInfo, and related value objects. Designed for Clean Architecture: zero infrastructure, no PDO, no external dependencies.
Table of Contents
- Goals
- What’s Included
- What’s Not Included
- Install
- Usage
- Directory & Namespaces
- Versioning
- Contributing
- License
Goals
- Represent the core business domain of a property management company
- Provide stable, pure, side‑effect‑free domain entities
- Stay framework‑agnostic and persistence‑agnostic
- Serve as the business foundation for
storefrontandstorefront-admin
What’s Included
- Core business entities:
PropertyUnitAddressCompanyCompanyInfoContactInfo
- Simple domain invariants and rules with no external I/O
- Immutable value objects where appropriate
What’s Not Included
- No PDO or repository implementations
- No validation framework
- No HTTP, controllers, or framework glue
- No CMS-related classes (see
content-domain)
Install
composer require clutch-property-mgmt/business-domain
Requires PHP 8.2+.
Usage
Entities
<?php use ClutchPropertyMgmt\\BusinessDomain\\Property; use ClutchPropertyMgmt\\BusinessDomain\\Address; $address = new Address( street: '123 Main St', city: 'Fort Collins', state: 'CO', postalCode: '80524' ); $property = new Property( id: 42, name: 'Midtown Lofts', address: $address, );
Value Objects
<?php final class ContactInfo { public function __construct( public readonly string $phone, public readonly string $email, ) {} }
Directory & Namespaces
src/ Property.php Unit.php Address.php Company.php CompanyInfo.php ContactInfo.php
Namespace root: ClutchPropertyMgmt\\BusinessDomain
Versioning
- Semantic Versioning (SemVer)
- Breaking changes only in MAJOR releases
Contributing
- Fork the repo and create a feature branch
- Include tests where applicable
- Ensure CI passes
- Open a PR with a clear description
License
MIT License. See LICENSE for details.
clutch-property-mgmt/business-domain 适用场景与选型建议
clutch-property-mgmt/business-domain 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 144 次下载、GitHub Stars 达 0, 最近一次更新时间为 2026 年 02 月 19 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 clutch-property-mgmt/business-domain 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 clutch-property-mgmt/business-domain 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 144
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 34
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2026-02-19