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

Hexagonal Maker Bundle Laravel Package

ahmed-bhs/hexagonal-maker-bundle

View on GitHub
Deep Wiki
Context7

Doctrine Integration

Advanced Doctrine integration patterns for hexagonal architecture.


Pure Domain with YAML Mapping

Keep domain entities pure (no annotations) using YAML mapping.

Entity (Pure PHP)

<?php
// src/Blog/Post/Domain/Model/Post.php

namespace App\Blog\Post\Domain\Model;

final class Post
{
    private string $id;
    private string $title;
    private \DateTimeImmutable $createdAt;

    public function __construct(string $id, string $title)
    {
        $this->id = $id;
        $this->title = $title;
        $this->createdAt = new \DateTimeImmutable();
    }
}

YAML Mapping (Infrastructure)

# src/Blog/Post/Infrastructure/Persistence/Doctrine/Orm/Mapping/Post.orm.yml

App\Blog\Post\Domain\Model\Post:
    type: entity
    table: post

    id:
        id:
            type: string
            length: 36

    fields:
        title:
            type: string
            length: 255

        createdAt:
            type: datetime_immutable
            column: created_at

Value Objects as Embeddables

# Email.orm.yml
App\Domain\ValueObject\Email:
    type: embeddable
    fields:
        value:
            type: string
            length: 180

# User.orm.yml
embedded:
    email:
        class: App\Domain\ValueObject\Email
        columnPrefix: email_

Gedmo Extensions

Use Gedmo with YAML to keep domain pure:

fields:
    createdAt:
        type: datetime_immutable
        gedmo:
            timestampable:
                on: create

    slug:
        type: string
        gedmo:
            slug:
                fields: [title]

For complete Gedmo guide, see README.md.

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