PHPackages                             matheusfsc28/layercraft - 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. matheusfsc28/layercraft

ActiveLibrary[Framework](/categories/framework)

matheusfsc28/layercraft
=======================

A package to generate layered architecture (Controller, Service, Interface, Repository, Model) in Laravel applications.

v1.0.2(1y ago)21.1k↓50%MITPHPPHP &gt;=8.1

Since Oct 19Pushed 1y ago1 watchersCompare

[ Source](https://github.com/matheusfsc28/layercraft)[ Packagist](https://packagist.org/packages/matheusfsc28/layercraft)[ RSS](/packages/matheusfsc28-layercraft/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (2)Versions (4)Used By (0)

Langs
-----

[](#langs)

- [PT-BR 🇧🇷](#layercraft_pt)
- [EN-US 🇺🇸](#layercraft_en)

LayerCraft\_PT
==============

[](#layercraft_pt)

LayerCraft é um pacote para gerar uma arquitetura em camadas (Controller, Service, Interface, Repository, Model) em aplicações Laravel. Ele facilita a organização do código e promove boas práticas de desenvolvimento de maneira ágil.

Instalação
----------

[](#instalação)

Você pode instalar o pacote via Composer. Execute o seguinte comando no seu terminal:

```
composer require matheusfsc28/layercraft
```

Como usar
---------

[](#como-usar)

No seu terminal, na pasta do seu projeto Laravel, execute o seguinte comando:

```
php artisan layercraft
```

Isso criará a seguinte estrutura no projeto:

```
/seu-projeto
├── app/
│   ├── Http/
│   │   └── Controllers/
│   │       └── Controller.php
│   ├── Interfaces/
│   │   └── Interface.php
│   ├── Models/
│   │   └── .php
│   ├── Repositories/
│   │   └── Repository.php
│   └── Services/
│       └── Service.php
```

Você também pode criar suas subpastas para manter a organização de acordo com suas necessidades:

```
php artisan layercraft \
```

A estrutura ficará da seguinte maneira:

```
/seu-projeto
├── app/
│   ├── Http/
│   │   └── Controllers/
│   │       └── /
│   │           └── Controller.php
│   ├── Interfaces/
│   │   └── /
│   │       └── Interface.php
│   ├── Models/
│   │   └── /
│   │       └── .php
│   ├── Repositories/
│   │   └── /
│   │       └── Repository.php
│   └── Services/
│       └── /
│           └── Service.php
```

### Estrutura Detalhada

[](#estrutura-detalhada)

- **Controllers**: Contém a lógica do controlador.
- **Interfaces**: Define a interface que o repositório deve implementar.
- **Models**: Representa a entidade no banco de dados.
- **Repositories**: Contém a lógica de acesso a dados.
- **Services**: Implementa a lógica de negócios.

Licença
-------

[](#licença)

Este projeto está licenciado sob a Licença MIT. Veja o arquivo LICENSE para mais detalhes.

Contato
-------

[](#contato)

Se você tiver dúvidas ou sugestões, entre em contato:

- **Nome**: Matheus Felipe
- **Email**:
- **GitHub**: [![GitHub](https://camo.githubusercontent.com/75f94275194d16f65d587048cc84b81edf65f5c4e0e14c55f02b417871661273/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4769744875622d6d61746865757366736332382d626c75653f7374796c653d666c61742d737175617265)](https://github.com/matheusfsc28)
- **LinkedIn**: [![LinkedIn](https://camo.githubusercontent.com/bd4041d6b317982547e8e4b4034b34e2be4f7c757d6b626aad63335503d12752/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c696e6b6564496e2d6d61746865757366736332382d626c75653f7374796c653d666c61742d737175617265)](https://www.linkedin.com/in/matheusfsc28)

LayerCraft\_EN
==============

[](#layercraft_en)

LayerCraft is a package to generate a layered architecture (Controller, Service, Interface, Repository, Model) in Laravel applications. It helps organize the code and promotes good development practices in an agile way.

Installation
------------

[](#installation)

You can install the package via Composer. Run the following command in your terminal:

```
composer require matheusfsc28/layercraft
```

How to use
----------

[](#how-to-use)

In your terminal in the root of your Laravel project, run the following command:

```
php artisan layercraft
```

This will create the following structure in the project:

```
/your-project
├── app/
│   ├── Http/
│   │   └── Controllers/
│   │       └── Controller.php
│   ├── Interfaces/
│   │   └── Interface.php
│   ├── Models/
│   │   └── .php
│   ├── Repositories/
│   │   └── Repository.php
│   └── Services/
│       └── Service.php
```

You can also create your subfolders to keep according to your organization:

```
php artisan layercraft \
```

The structure will be as follows:

```
/your-project
├── app/
│   ├── Http/
│   │   └── Controllers/
│   │       └── /
│   │           └── Controller.php
│   ├── Interfaces/
│   │   └── /
│   │       └── Interface.php
│   ├── Models/
│   │   └── /
│   │       └── .php
│   ├── Repositories/
│   │   └── /
│   │       └── Repository.php
│   └── Services/
│       └── /
│           └── Service.php
```

Detailed Structure
------------------

[](#detailed-structure)

- **Controllers**: Contains the controller logic.
- **Interfaces**: Defines the interface that the repository must implement.
- **Models**: Represents the entity in the database.
- **Repositories**: Contains the data access logic.
- **Services**: Implements the business logic.

Contact
-------

[](#contact)

If you have any questions or suggestions, please contact:

- **Name**: Matheus Felipe
- **Email**:
- **GitHub**: [![GitHub](https://camo.githubusercontent.com/75f94275194d16f65d587048cc84b81edf65f5c4e0e14c55f02b417871661273/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4769744875622d6d61746865757366736332382d626c75653f7374796c653d666c61742d737175617265)](https://github.com/matheusfsc28)
- **LinkedIn**: [![LinkedIn](https://camo.githubusercontent.com/bd4041d6b317982547e8e4b4034b34e2be4f7c757d6b626aad63335503d12752/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c696e6b6564496e2d6d61746865757366736332382d626c75653f7374796c653d666c61742d737175617265)](https://www.linkedin.com/in/matheusfsc28)

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance37

Infrequent updates — may be unmaintained

Popularity21

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity50

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

Every ~0 days

Total

3

Last Release

575d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/112131403?v=4)[Matheus Felipe](/maintainers/matheusfsc28)[@matheusfsc28](https://github.com/matheusfsc28)

---

Top Contributors

[![matheusfsc28](https://avatars.githubusercontent.com/u/112131403?v=4)](https://github.com/matheusfsc28 "matheusfsc28 (5 commits)")

---

Tags

composercraftlaravellayerlayercraftlayered-architecturepackagephp

### Embed Badge

![Health badge](/badges/matheusfsc28-layercraft/health.svg)

```
[![Health](https://phpackages.com/badges/matheusfsc28-layercraft/health.svg)](https://phpackages.com/packages/matheusfsc28-layercraft)
```

###  Alternatives

[laravel/tinker

Powerful REPL for the Laravel framework.

7.4k423.8M1.8k](/packages/laravel-tinker)[laravel/ui

Laravel UI utilities and presets.

2.7k134.9M601](/packages/laravel-ui)[laravel/passport

Laravel Passport provides OAuth2 server support to Laravel.

3.4k85.0M532](/packages/laravel-passport)[laravel/sail

Docker files for running a basic Laravel application.

1.9k186.9M1.0k](/packages/laravel-sail)[laravel/jetstream

Tailwind scaffolding for the Laravel framework.

4.1k19.8M136](/packages/laravel-jetstream)[laravel/breeze

Minimal Laravel authentication scaffolding with Blade and Tailwind.

3.0k31.3M148](/packages/laravel-breeze)

PHPackages © 2026

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