cnastasi / ddd
A base for a DDD approach
Installs: 9 293
Dependents: 2
Suggesters: 0
Security: 0
Stars: 2
Watchers: 5
Forks: 2
Open Issues: 6
Requires
- myclabs/php-enum: ^1.7
- ramsey/uuid: ^4.1
Requires (Dev)
- friendsofphp/php-cs-fixer: ^2.18
- phpspec/prophecy-phpunit: ^2.0
- phpunit/phpunit: ^9.5
- psalm/plugin-phpunit: ^0.15.1
- timeweb/phpstan-enum: ^2.2
- vimeo/psalm: ^4.6
This package is auto-updated.
Last update: 2024-10-10 23:03:12 UTC
README
Base concepts for a DDD approach
This library gives you some base building blocks in order to build a DDD architecture.
Introduce into your code some concepts like:
- Value Object
- Entity
- Collection
Value Objects could be Simple
or Composite
.
Simple means that they contains only one primitive value (string
, int
, bool
, float
, object
)
Composite, otherwise, that they have one or more value, that could be primitive, SimpleValueObject
, another CompositeValueObject
Collections are "array" of Value Objects of the same type