PHPackages                             rlimjr/lara-clean - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. rlimjr/lara-clean

ActiveLibrary[Database &amp; ORM](/categories/database)

rlimjr/lara-clean
=================

A Laravel package for domain migrations.

1.0.0(1y ago)0281PHPPHP ^8.2

Since Oct 28Pushed 1y ago1 watchersCompare

[ Source](https://github.com/divineninja/Lara-clean)[ Packagist](https://packagist.org/packages/rlimjr/lara-clean)[ RSS](/packages/rlimjr-lara-clean/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (3)Used By (0)

**LaraClean: A Laravel Package for Domain-Driven Design**
=========================================================

[](#laraclean-a-laravel-package-for-domain-driven-design)

**Description**
---------------

[](#description)

LaraClean is a Laravel package designed to facilitate domain-driven design (DDD) principles in your application. It provides a set of console commands to help you create and manage your domain models, DTOs, and migrations in a structured and organized way.

**Usage**
---------

[](#usage)

### Installation

[](#installation)

To install LaraClean, run the following command in your terminal:

```
composer require rlimjr/lara-clean
```

### Available Commands

[](#available-commands)

LaraClean provides the following console commands:

- `make:domain`: Create a new domain model
- `make:domain-dto`: Create a new DTO (Data Transfer Object)
- `make:domain-migration`: Create a new migration for a domain model

### Command Options

[](#command-options)

- `--domain`: Specify the domain name (required)
- `--name`: Specify the model or DTO name (required)
- `--path`: Specify the path to the domain directory (optional)

### Examples

[](#examples)

- Create a new domain model:

```
php artisan make:domain Question
```

- Create a new DTO:

```
php artisan make:dto Question Question
```

- Create a new migration for a domain model:

```
php artisan make:domain-migration Question Choices
```

### Directory Structure

[](#directory-structure)

LaraClean assumes the following directory structure for your domain models and DTOs:

```
app/
Domain/
{domain-name}/
Models/
{model-name}.php
DTOs/
{dto-name}.php
Migrations/
{migration-name}.php
```

###  Health Score

29

—

LowBetter than 60% of packages

Maintenance38

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

559d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/5cfc6209322e49c87831bfba29ecb853c370766caf004941d1b12d719bc98823?d=identicon)[divineninja](/maintainers/divineninja)

---

Top Contributors

[![divineninja](https://avatars.githubusercontent.com/u/3126378?v=4)](https://github.com/divineninja "divineninja (8 commits)")

### Embed Badge

![Health badge](/badges/rlimjr-lara-clean/health.svg)

```
[![Health](https://phpackages.com/badges/rlimjr-lara-clean/health.svg)](https://phpackages.com/packages/rlimjr-lara-clean)
```

###  Alternatives

[anourvalar/eloquent-serialize

Laravel Query Builder (Eloquent) serialization

11320.2M21](/packages/anourvalar-eloquent-serialize)[matanyadaev/laravel-eloquent-spatial

Spatial library for Laravel

3982.9M15](/packages/matanyadaev-laravel-eloquent-spatial)[overtrue/laravel-versionable

Make Laravel model versionable.

585308.0k5](/packages/overtrue-laravel-versionable)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135192.6k5](/packages/statamic-rad-pack-runway)[dragon-code/laravel-deploy-operations

Performing any actions during the deployment process

240173.5k2](/packages/dragon-code-laravel-deploy-operations)[stayallive/laravel-eloquent-observable

Register Eloquent model event listeners just-in-time directly from the model.

2928.9k7](/packages/stayallive-laravel-eloquent-observable)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
