承接 hungthai1401/laravel-domain-oriented 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

hungthai1401/laravel-domain-oriented

最新稳定版本:v0.0.1

Composer 安装命令:

composer require hungthai1401/laravel-domain-oriented

包简介

Build a domain-oriented application on Laravel Framework

README 文档

README

This package builds a structure to domain-oriented application (not DDD).

Requirements

  • PHP 7.2+, 8.0, 8.1
  • Laravel 7.x, 8.x, 9.x

Introduction

I want to build structures in an organized and productive way. Take a look at the final structure:

src
├── App
│   ├── Admin
│   │   ├── Controllers
│   │   ├── Middlewares
│   │   ├── Requests
│   │   └── ...
│   ├── Api
│   │   ├── Controllers
│   │   ├── Middlewares
│   │   ├── Requests
│   │   └── ...
│   └── Console
│       ├── Commands
│       └── ...
├── Domain
│   ├── Dummy
│   │   ├── Actions
│   │   ├── QueryBuilders
│   │   ├── Collections
│   │   ├── DataTransferObjects
│   │   ├── Events
│   │   ├── Exceptions
│   │   ├── Listeners
│   │   ├── Models
│   │   ├── Rules
│   │   └── States
│   └── ...
├── Support
│   ├── Providers
│   ├── Middlewares
│   ├── Controllers
│   └── ...
database
├── factories
├── migrations
└── seeders
...

Setup

  1. Run this Composer command to install the latest version
composer require hungthai1401/laravel-domain-oriented --dev
  1. If you prefer, you can export the config files:
php artisan vendor:publish --provider="HT\LaravelDomainOriented\ServiceProvider" --tag="config"
  1. Run this command to build the domain structure:
php artisan domain:make Dummy
  1. And of course, if you want to remove the structure, just run this command:
php artisan domain:remove Dummy

Reading Articles

  1. Domain oriented Laravel
  2. Please, stop talking about Repository pattern with Eloquent

统计信息

  • 总下载量: 2.9k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 5
  • 点击次数: 1
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 5
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-07-11