clutch-property-mgmt/business-domain 问题修复 & 功能扩展

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

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

clutch-property-mgmt/business-domain

最新稳定版本:1.2.1

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

  • 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 storefront and storefront-admin

What’s Included

  • Core business entities:
    • Property
    • Unit
    • Address
    • Company
    • CompanyInfo
    • ContactInfo
  • 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

  1. Fork the repo and create a feature branch
  2. Include tests where applicable
  3. Ensure CI passes
  4. Open a PR with a clear description

License

MIT License. See LICENSE for details.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: proprietary
  • 更新时间: 2026-02-19

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固