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 today

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 60% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

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

2696d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/c05d31f2611a48c6a3aa1e4d23191ece6d66fe391aa9ba846008c7bb68c7ea7c?d=identicon)[toanna](/maintainers/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

[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.

3691.5k](/packages/codewithdennis-larament)[ecotone/laravel

Laravel integration for Ecotone

21307.6k3](/packages/ecotone-laravel)

PHPackages © 2026

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