Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Ddd Laravel Package

pccomponentes/ddd

Mini framework PHP para construir aplicaciones con DDD + CQRS + Event Sourcing, orientado a la escritura. Propone arquitectura hexagonal (Application/Domain/Infrastructure/EntryPoint/Util) y guía de capas, dependencias y persistencia basada en eventos.

View on GitHub
Deep Wiki
Context7
v4.6.0

Summary

Add UUID v7 generation support to the Uuid value object.

This change introduces a dedicated v7() factory method and adds a generic create() factory that now generates UUID v7 by default.

Changes

  • add Uuid::v7() in src/Domain/Model/ValueObject/Uuid.php
  • add Uuid::create() as the generic factory for new UUIDs
  • keep Uuid::v4() available for explicit v4 generation

Context

Main advantages of v7 over v4:

  • Better database insert performance
  • Less index fragmentation
  • Natural sorting by creation time
  • Easier debugging and traceability
  • Still works well in distributed systems without central coordination

v4 is still fine when you only need simple, fully random identifiers.

v4.5.0

Changes:

  • refactor: remove 'abstract' access modifier from VOs

Notes:

Before: you must create a child VO class that extend VO class After: you can use parent VO (Ex: StringValueObject) without create child class

v4.4.0

feat: add equivalentTo function to collection value object

function is similar to equalTo, but:

  • equalTo: two identical collections with different order returned false.
  • equivalentTo: two equal collections with different order return true.
v4.3.1

fix: remove impossible return type cases

v4.3.0
  • feat: override all date time factory functions
v4.2.1

fix: prevent generate not UTC datetime

This value object was thinking for use UTC as TimeZone standar. However, it allow set other timezone by passing it on "from" factory:

$date = DateTimeValueObject::from('2025-01-10T15:16:11+01:00')

echo $date->format(\DATE_ATOM) ; // result 2025-01-10T15:16:11+01:00

Before this fix, date was transformed to UTC, expected result: 2025-01-10T14:16:11+00:00

v4.2.0
  • Add date value object #40
  • Renamed DateTimeRangeValeObject to DateTimeRangeValueObject and deprecated the first.
  • Added value method to Value interface
v4.1.0

feat: Add unique id value object

v4.0.1
  • fix: Keep microseconds in DateTimeValueObject #38
v4.0.0
  • feat: allow set occurred on datetime format
  • refactor: remove aggregate message aggregate uuid support
  • refactor: add static return types to factories
v3.1.0
  • AggregateMessage edited: now aggregate id is a string value object, not uuid required.
  • Add deprecation: on "AggregateMessage::fromPayload" $aggregateId should be a AggregateId value object instead of Uuid.
v3.0.0
  • remove unsafe ValueObject constructors
  • phpstand added
  • php7.4 compatibility removed
  • update return types (adding ": static" to factories)
  • add iterator and countable type hint to collection
v2.3.2

#31 Updated return type from self to static

v2.3.1

v2.3.1

#30 Add missing return types

v2.3.0
v2.2.0

added: Obtain collection first element

v2.1.0
  • development dependencies upgraded
  • php 8 compatibility added
v2.0.4
  • Add sort function in CollectionValueObject
v2.0.3
v2.0.2
v2.0.1

Patch deserializers

v2.0.0
v1.2.4
v1.2.3
v1.2.2
v1.2.1
v1.1.3
v1.1.2
v1.1.1
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
terminal42/code-quality-tools
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky