Download the PHP package clutch-property-mgmt/content-domain without Composer
On this page you can find all versions of the php package clutch-property-mgmt/content-domain. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download clutch-property-mgmt/content-domain
More information about clutch-property-mgmt/content-domain
Files in clutch-property-mgmt/content-domain
Package content-domain
Short Description Shared CMS domain models for PHP SSR apps. Provides pure, framework-agnostic entities (Page, PageSection, Review, SeoMeta, Navigation, etc.) with attribute-based validation via [phpolar/model]. Designed for Clean Architecture: no infrastructure, no PDO—just content-focused domain objects.
License proprietary
Informations about the package content-domain
content-domain
Shared CMS domain models for PHP SSR apps. Provides pure, framework-agnostic entities (Page, PageSection, Review, SeoMeta, Navigation, etc.) with attribute-based validation via [phpolar/model]. Designed for Clean Architecture: no infrastructure, no PDO—just content-focused domain objects.
Table of Contents
- Goals
- What’s Included
- What’s Not Included
- Install
- Usage
- Entities
- Validation with phpolar/model
- Immutability / Value semantics
- Directory & Namespaces
- Versioning
- Contributing
- License
Goals
- Pure domain for CMS/content concerns
- Reusable across
storefront(read-only) andstorefront-admin(read-write) - Stable contracts with small, composable objects
- Validation via attributes using
phpolar/model - Zero infrastructure: no PDO, no frameworks, no I/O side effects
What’s Included
- Core CMS entities and value objects:
Page,PageSection,Block,SeoMeta,Slug,Navigation,MenuItem,Review(example set)
- Attribute-based rules for validation/normalization
- Minimal helpers for content-domain business rules (publishability, visibility windows, etc.) that do not perform I/O
What’s Not Included
- No repositories, PDO, or persistence code
- No controllers or framework glue
- No caching, logging, HTTP, or config loading
Keep infrastructure in the application layer (e.g.,
storefront,storefront-admin). This package should remain framework- and storage-agnostic.
Install
Requires PHP 8.2+ and
phpolar/model.
Usage
Entities
Validation with phpolar/model
Use PHP attributes from phpolar/model on properties to enforce constraints.
Immutability / Value semantics
Favor immutable value objects (e.g., Slug, SeoMeta) and explicit methods to derive new instances rather than in-place mutation. Entities may carry identifiers; value objects should not.
Directory & Namespaces
- Root namespace:
ContentDomain\\... - Public API is limited to types under
ContentDomain\Contentand documented helpers.
Versioning
- Semantic Versioning (SemVer): MAJOR.MINOR.PATCH
- Breaking changes only in MAJOR releases
Contributing
- Fork and create a feature branch
- Add tests and docs
- Ensure CI passes (coding standards, static analysis, unit tests)
- Open a PR with a clear description and rationale
License
MIT License. See LICENSE for details.