PHPackages                             bukankalengkaleng/laravel-entity - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. bukankalengkaleng/laravel-entity

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

bukankalengkaleng/laravel-entity
================================

Generate an entity along with their artefacts (Model, Controller, Migration, Form Request, Tests, Factory, Policy)

v1.1.1(7y ago)666MITPHPCI failing

Since Dec 26Pushed 6y ago2 watchersCompare

[ Source](https://github.com/bukankalengkaleng/laravel-entity)[ Packagist](https://packagist.org/packages/bukankalengkaleng/laravel-entity)[ Docs](https://github.com/bukankalengkaleng/laravel-entity)[ RSS](/packages/bukankalengkaleng-laravel-entity/feed)WikiDiscussions master Synced 3w ago

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

Laravel Entity 🧱
================

[](#laravel-entity-)

This readme is written in Bahasa. [English version is here.](README.EN.md)

StatusRelease[![Latest Stable Version](https://camo.githubusercontent.com/85542c03bda99d007b844e960daf951ca1ffc24c4b15d6c6907d3e6f955b07c8/68747470733a2f2f706f7365722e707567782e6f72672f62756b616e6b616c656e676b616c656e672f6c61726176656c2d656e746974792f762f737461626c65)](https://packagist.org/packages/bukankalengkaleng/laravel-entity) [![Total Downloads](https://camo.githubusercontent.com/ae75233907df7a45cc80344fe9a7713ca69c23b438d044eac1ddc51239cc99af/68747470733a2f2f706f7365722e707567782e6f72672f62756b616e6b616c656e676b616c656e672f6c61726176656c2d656e746974792f646f776e6c6f616473)](https://packagist.org/packages/bukankalengkaleng/laravel-entity) [![License](https://camo.githubusercontent.com/bd1ee97fb5f0ffc1971dcc0d0ef92081ce383a848e31287fb62f8135cafa3e99/68747470733a2f2f706f7365722e707567782e6f72672f62756b616e6b616c656e676b616c656e672f6c61726176656c2d656e746974792f6c6963656e7365)](https://packagist.org/packages/bukankalengkaleng/laravel-entity)Code Quality[![Scrutinizer Code Quality](https://camo.githubusercontent.com/82d387c9542681bde28a004148b67988a389084b4969a32a676fb976a64dab45/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f62756b616e6b616c656e676b616c656e672f6c61726176656c2d656e746974792f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/bukankalengkaleng/laravel-entity/?branch=master) [![codecov](https://camo.githubusercontent.com/6bba45022e00c8b654fc2e5be46dd6186d396e720c7774790bcffd44b5918a4a/68747470733a2f2f636f6465636f762e696f2f67682f62756b616e6b616c656e676b616c656e672f6c61726176656c2d656e746974792f6272616e63682f6d61737465722f67726170682f62616467652e737667)](https://codecov.io/gh/bukankalengkaleng/laravel-entity) [![Code Intelligence Status](https://camo.githubusercontent.com/92082260dc0a74196072d326dff3d916f261fc18d7b315b3298b6d9a509dca66/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f62756b616e6b616c656e676b616c656e672f6c61726176656c2d656e746974792f6261646765732f636f64652d696e74656c6c6967656e63652e7376673f623d6d6173746572)](https://scrutinizer-ci.com/code-intelligence)Development[![Build Status](https://camo.githubusercontent.com/86caff22741d8460c2c0887f536ddc5186951da99030aa6a0d0d6fb7b29095af/68747470733a2f2f7472617669732d63692e6f72672f62756b616e6b616c656e676b616c656e672f6c61726176656c2d656e746974792e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/bukankalengkaleng/laravel-entity) [![Maintainability](https://camo.githubusercontent.com/781430cbc98298fd9e729924f252ab144f404319c8f5b8bf03de04df7415f5ac/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f65303336396436636339373939623335336330612f6d61696e7461696e6162696c697479)](https://codeclimate.com/github/bukankalengkaleng/laravel-entity/maintainability) [![Test Coverage](https://camo.githubusercontent.com/d7c37fe06c3d8d712d5f836c60bb31a3f4a48482ce2692ebeccbbaf6bc25cf7d/68747470733a2f2f6170692e636f6465636c696d6174652e636f6d2f76312f6261646765732f65303336396436636339373939623335336330612f746573745f636f766572616765)](https://codeclimate.com/github/bukankalengkaleng/laravel-entity/test_coverage)---

Deskripsi
---------

[](#deskripsi)

Artisan *command* untuk membuat entitas yang lengkap.

Motivasi
--------

[](#motivasi)

Membuat entitas (contoh: *Product, Employee*, dsb) yang lengkap (ada *Model, Factory, Migration, Form Requests, Feature / Unit tests, Policy*, dan *Controller*-nya) akan memakan waktu jika dilakukan manual. Artisan *command* ini akan mempercepatnya.

Instalasi
---------

[](#instalasi)

```
composer require bukankalengkaleng/laravel-entity
```

Laravel v5.5 dan keatas akan otomatis meregistrasi package ini. Jika kamu menggunakan versi dibawah itu, kamu perlu melakukannya secara manual dalam file `config/app.php`:

```
'providers' => [
    // ...
    BukanKalengKaleng\LaravelEntity\LaravelEntityServiceProvider::class,
];
```

Cara Menggunakan
----------------

[](#cara-menggunakan)

1. Jalankan perintah

    ```
    php artisan entity:make Product
    ```
2. Kamu akan dapatkan entitas **Product** yang lengkap:

    - app/Models/**Product.php**
    - database/migrations/**create\_products\_table.php**
    - database/factories/**ProductFactory.php**
    - database/seeds/**ProductsTableSeeder.php**
    - database/seeds/dummies/**Products.php**
    - app/Http/Controllers/Admin/**ProductController.php**
    - app/Http/Controllers/Frontend/**ProductController.php**
    - app/Http/Requests/Admin/**ProductStore.php**
    - app/Http/Requests/Admin/**ProductUpdate.php**
    - app/Http/Requests/Frontend/**ProductStore.php**
    - app/Http/Requests/Frontend/**ProductUpdate.php**
    - app/Policies/**ProductPolicy.php**
    - app/tests/Feature/**ProductTest.php**
    - app/tests/Unit/**ProductTest.php**

Namespaces entitas (`Admin` dan `Frontend`) dapat diatur dalam file `config/entity.php` yang harus kamu publish dahulu dengan cara:

```
php artisan vendor:publish --tag="laravel-entity"
```

Screenshots
-----------

[](#screenshots)

[![](screenshots/01.png)](screenshots/01.png) [![](screenshots/02.png)](screenshots/02.png)

Roadmap
-------

[](#roadmap)

Untuk mengetahui rencana kedepan package ini silahkan membaca [Roadmap](ROADMAP.md).

Kontribusi [![contributions welcome](https://camo.githubusercontent.com/9e93e892d0685e1bf7a1d0bd7c8410d6ecf2086a0a7b48dd58a6b96fa556ea2a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f636f6e747269627574696f6e732d77656c636f6d652d627269676874677265656e2e7376673f7374796c653d666c6174)](https://github.com/bukankalengkaleng/laravel-entity/issues)
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

[](#kontribusi-)

1. Kirim PR
2. Gak perlu baper kalo PR tertolak

Catatan Revisi
--------------

[](#catatan-revisi)

Catatan revisi dapat dilihat di [Changelog](CHANGELOG.md) ini.

Lisensi
-------

[](#lisensi)

Lisensi dari package ini adalah MIT License (MIT). Silahkan lihat bagian [Lisensi](LICENSE.md) ini untuk lebih jelasnya.

###  Health Score

29

—

LowBetter than 57% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity63

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 ~2 days

Total

3

Last Release

2735d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2d04d33e97aba408aaf4ac56f219788dd825c194c2c4221504b1d59ec099a3b9?d=identicon)[rkukuh](/maintainers/rkukuh)

---

Top Contributors

[![rkukuh](https://avatars.githubusercontent.com/u/183228?v=4)](https://github.com/rkukuh "rkukuh (164 commits)")

---

Tags

artisanartisan-commandentityfactorygeneratorlaravellaravelartisanentitycommandbukankalengkaleng

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/bukankalengkaleng-laravel-entity/health.svg)

```
[![Health](https://phpackages.com/badges/bukankalengkaleng-laravel-entity/health.svg)](https://phpackages.com/packages/bukankalengkaleng-laravel-entity)
```

###  Alternatives

[msztorc/laravel-env

Laravel env helper commands

7856.7k](/packages/msztorc-laravel-env)

PHPackages © 2026

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