PHPackages                             toanna/laravel-5-layer - 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. [Framework](/categories/framework)
4. /
5. toanna/laravel-5-layer

ActivePackage[Framework](/categories/framework)

toanna/laravel-5-layer
======================

A dev toolkit to transform Laravel to 5-Layered Architecture

v1.2.3(7y ago)02.2k1MITPHPPHP &gt;=7.1

Since Nov 27Pushed 7y ago1 watchersCompare

[ Source](https://github.com/toanna/5-layer-for-laravel)[ Packagist](https://packagist.org/packages/toanna/laravel-5-layer)[ RSS](/packages/toanna-laravel-5-layer/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (1)Versions (7)Used By (1)

laravel-5-layer
===============

[](#laravel-5-layer)

A dev toolkit to transform Laravel to 5-Layered Architecture.

Get started
-----------

[](#get-started)

```
$ composer require toanna/laravel-5-layer

```

Commands
--------

[](#commands)

### Initialize folder structure

[](#initialize-folder-structure)

```
$ php artisan 5l:init

```

Folder structure:

```
/app
    /Abstraction
        /ExternalServiceInterface
        /RepositoryInterface
    /Business
    /BusinessService
    /Common
        /CircuitBreaker
        /DomainModels
        /Exceptions
        /ExternalConfig
        /Logging
    /Dependency
        /ExternalServices
        /Repositories
    /Providers
    /Representation
        /Console
        /Http
            /Controllers
                /Api
                /Auth
            /Middleware
            /Requests
            Kernel.php

```

### Creating Commands

[](#creating-commands)

Create an Abstraction Interface to `app/Abstraction/`:

```
$ php artisan 5l:abstraction ExternalServiceInterface/IFileUploader

```

Create a Business Logic Class to `app/Business/`:

```
$ php artisan 5l:business CreateFileBL

```

Create a Business Service Class to `app/BusinessService/`:

```
$ php artisan 5l:business_service CreateFileBS

```

Create a Controller Class to `app/Representation/Http/`:

```
$ php artisan 5l:controller TestController

```

Create an API Controller Class to `app/Representation/Http/Api`:

```
$ php artisan 5l:api_controller FileController

```

Create a Dependency Class to `app/Dependency/`:

```
$ php artisan 5l:dependency Repositories/SQLFileCreator

```

Create a Domain Model Class to `app/Common/DomainModels`:

```
$ php artisan 5l:domain_model File

```

Create an Eloquent ORM Class to `app/Dependency/Repositories/Eloquent/`:

```
$ php artisan 5l:eloquent FileEloquent

```

Create an Exception Class to `app/Common/Exceptions/`:

```
$ php artisan 5l:exception ValidationException

```

Create a Form Request Class to `app/Representation/Http/Requests/`:

```
$ php artisan 5l:request CreateFileRequest

```

Create a Resource to `app/Representation/Http/Resources/`:

```
$ php artisan 5l:resource

```

Create a Artisan Command to `app/Representation/Console/Commands/`:

```
$ php artisan 5l:console AbstractionMakeCommand

```

Contributors
------------

[](#contributors)

- Thắng Lê
- Toàn Nguyễn

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity61

Established project with proven stability

 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

Every ~5 days

Total

6

Last Release

2745d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7908196?v=4)[Toan Nguyen](/maintainers/toanna)[@toanna](https://github.com/toanna)

---

Top Contributors

[![toanna](https://avatars.githubusercontent.com/u/7908196?v=4)](https://github.com/toanna "toanna (17 commits)")

### Embed Badge

![Health badge](/badges/toanna-laravel-5-layer/health.svg)

```
[![Health](https://phpackages.com/badges/toanna-laravel-5-layer/health.svg)](https://phpackages.com/packages/toanna-laravel-5-layer)
```

###  Alternatives

[laravel/octane

Supercharge your Laravel application's performance.

4.0k24.7M207](/packages/laravel-octane)[unopim/unopim

UnoPim Laravel PIM

10.5k2.2k](/packages/unopim-unopim)[nasirkhan/laravel-starter

A CMS like modular Laravel starter project.

1.4k2.7k](/packages/nasirkhan-laravel-starter)[ecotone/laravel

Ecotone for Laravel — CQRS, Event Sourcing, Sagas, Durable Workflows, and Outbox on top of Laravel Queue, via PHP attributes.

21313.7k3](/packages/ecotone-laravel)[codewithdennis/larament

Larament is a time-saving starter kit to quickly launch Laravel 13.x projects. It includes FilamentPHP 5.x pre-installed and configured, along with additional tools and features to streamline your development workflow.

3911.7k](/packages/codewithdennis-larament)[r2luna/brain

Brain: A process-driven architecture alternative for your Laravel Application.

6333.0k1](/packages/r2luna-brain)

PHPackages © 2026

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