stemizer/laravel-domain-repositories

Convention-driven repository binding for domain-oriented Laravel architectures.

Maintainers

Package info

github.com/samettemizer/laravel-domain-repositories

pkg:composer/stemizer/laravel-domain-repositories

Statistics

Installs: 0

Dependents: 0

Suggesters: 0

Stars: 0

Open Issues: 0

1.0.0 2026-04-20 22:42 UTC

This package is auto-updated.

Last update: 2026-04-21 09:55:51 UTC


README

Convention-driven repository binding for domain-oriented Laravel architectures.

This package provides a focused approach for organizing and registering repository contracts and concrete implementations in Laravel applications that follow a domain-based directory structure. Instead of manually adding container bindings for every repository pair, it applies a strict naming convention and centralizes the registration flow through a dedicated helper and configuration file.

Features

  • Domain-based repository organization under app/Domains
  • Strict and predictable repository naming conventions
  • Automatic contract-to-concrete container registration
  • Config-driven repository driver selection (Eloquent or any other ORM)
  • Configurable binding strategies such as bind and singleton
  • Optional cache file generation for staging/prod environments
  • Helper support for standard domain directory scaffolding

Out of Scope

This package intentionally focuses on repository registration only. It does not try to manage event-listeners or service registrations.

Installation

composer require stemizer/laravel-domain-repositories