Looking to hire Laravel developers? Try LaraJobs

laravel-domain-repositories maintained by stemizer

Description
Convention-driven repository binding for domain-oriented Laravel architectures.
Author
Last update
2026/04/21 00:42 (dev-main)
License
Links
Downloads
0

Comments
comments powered by Disqus

laravel-domain-repositories

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