Weave 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.
xiloryx/log-collector
a21ns1g4ts/filament-stripe
la-php/laravel-admin
artisan-build/community-prompts
vleroy/smart
ayles-software/laravel-australian-public-holidays
cboxdk/laravel-id-spatie
cboxdk/laravel-id-billing
cboxdk/laravel-id-billing-bridge
simple-as-fuck/php-performance-log
hsluv/hsluv
seampact/codegen
seampact/hooks
seampact/ir
mehedimi/laravel-amp-mail
happones/laravel-vue-i18n-generator
jwerd/inertia-table
siberfx/flysystem-wasabi
hollyit/token-replace
ippanelcom/laravel-sdk