PHPackages                             msjit/msjframework - 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. msjit/msjframework

ActiveLibrary[Framework](/categories/framework)

msjit/msjframework
==================

MSJ Framework - Base Framework for Laravel MSJ Framework

v1.3.1(5mo ago)42proprietaryBladePHP ^8.2CI failing

Since Nov 12Pushed 5mo agoCompare

[ Source](https://github.com/rey-workbench/msjframework)[ Packagist](https://packagist.org/packages/msjit/msjframework)[ Docs](https://github.com/rey-workbench/msjframework)[ RSS](/packages/msjit-msjframework/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (5)Versions (32)Used By (0)

MSJ Framework Laravel Generator
===============================

[](#msj-framework-laravel-generator)

[![Latest Version](https://camo.githubusercontent.com/4ca9e41b2168ab3efb48da4a4de56bbea660d9fe01a3b400d9e9efca25bdb9c7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f72657973696c76616131322f6d736a6672616d65776f726b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/reysilvaa12/msjframework)[![Total Downloads](https://camo.githubusercontent.com/854dd268edbea9442baa8e8951eb1a40ee26786212b91ea4b00c99ed09a6903c/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f72657973696c76616131322f6d736a6672616d65776f726b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/reysilvaa12/msjframework)[![License](https://camo.githubusercontent.com/17eb49c3b031c8baf70437227005bc367764ef1c909943286f8ce9c37d4a985f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f72657973696c76616131322f6d736a6672616d65776f726b2e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/reysilvaa12/msjframework)

MSJ Framework Laravel Generator adalah package Laravel yang memudahkan pembuatan CRUD (Create, Read, Update, Delete) dengan wizard interaktif menggunakan Laravel Prompts. Package ini secara otomatis menghasilkan Model, Controller, Views (Blade), JavaScript, dan konfigurasi database untuk modul MSJ Framework.

Fitur
-----

[](#fitur)

- **Wizard Interaktif** - Menggunakan Laravel Prompts untuk pengalaman yang lebih baik
- **CRUD Generator** - Generate lengkap Model, Controller, Views, dan JavaScript
- **Multi Layout Support** - Mendukung layout manual, standard, transaksi, system, dan report
- **Auto Detection** - Deteksi otomatis struktur tabel database
- **Authorization** - Generate konfigurasi authorization otomatis
- **Fillable Auto** - Generate fillable property secara otomatis dari struktur tabel
- **Beautiful Console** - Console output yang menarik dengan ASCII art dan badges
- **Search &amp; Select** - Pencarian tabel dan field dengan autocomplete

Requirements
------------

[](#requirements)

- PHP &gt;= 8.2
- Laravel ^11.0|^12.0
- Laravel Prompts ^0.1.0|^0.3.0

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

[](#installation)

Install package via Composer:

```
composer require msjit/msjframework
```

Publish configuration (optional):

```
php artisan vendor:publish --tag=msj-generator-config
```

Usage
-----

[](#usage)

### Interactive Menu

[](#interactive-menu)

Jalankan command tanpa argument untuk membuka menu interaktif:

```
php artisan msj:make
```

### Generate Module (Wizard)

[](#generate-module-wizard)

Generate module lengkap dengan wizard interaktif:

```
php artisan msj:make menu
# atau
php artisan msj:make module
```

### Generate CRUD (Quick)

[](#generate-crud-quick)

Generate CRUD secara cepat:

```
php artisan msj:make crud mst_example
```

Dengan opsi:

```
php artisan msj:make crud mst_example --gmenu=KOP001 --dmenu=KOP999 --layout=manual
```

### Generate Controller

[](#generate-controller)

```
php artisan msj:make controller ExampleController
```

### Generate Model

[](#generate-model)

```
php artisan msj:make model mst_example
```

### Generate Views

[](#generate-views)

```
php artisan msj:make views
```

Commands
--------

[](#commands)

### `msj:make`

[](#msjmake)

Hub command untuk semua generator. Menampilkan menu interaktif jika dijalankan tanpa argument.

### `msj:make:menu`

[](#msjmakemenu)

Wizard interaktif untuk generate module lengkap dengan 4 langkah:

1. Pilih Layout Type
2. Informasi Dasar (gmenu, dmenu, menu name, URL, table)
3. Pengaturan Field
4. Ringkasan

### `msj:make:crud {table}`

[](#msjmakecrud-table)

Generate CRUD secara cepat dari tabel database.

**Options:**

- `--gmenu=` - Kode group menu (default: KOP001)
- `--dmenu=` - Kode detail menu (default: KOP999)
- `--layout=` - Tipe layout: manual|standr|transc|system|report (default: manual)

### `msj:make:controller {name}`

[](#msjmakecontroller-name)

Generate controller MSJ dengan method CRUD.

**Options:**

- `--table=` - Nama tabel database
- `--gmenu=` - Kode group menu
- `--url=` - URL slug

### `msj:make:model {table}`

[](#msjmakemodel-table)

Generate model dari struktur tabel database.

**Options:**

- `--force` - Menimpa model yang sudah ada

### `msj:make:views`

[](#msjmakeviews)

Generate blade views (list, add, edit, show) dan JavaScript.

**Options:**

- `--gmenu=` - Kode group menu
- `--url=` - URL slug
- `--table=` - Nama tabel database
- `--dmenu=` - Kode detail menu

Layout Types
------------

[](#layout-types)

- **manual** - Controller &amp; views custom (kontrol penuh)
- **standr** - CRUD standard (form sederhana, 1 primary key)
- **transc** - Transaksi (struktur header-detail)
- **system** - Konfigurasi sistem (master-detail)
- **report** - Menu laporan (halaman filter &amp; hasil)

Generated Files
---------------

[](#generated-files)

### Model

[](#model)

- `app/Models/{ModelName}.php`
- Auto-detected primary key
- Auto-generated fillable properties
- Timestamps configuration

### Controller

[](#controller)

- `app/Http/Controllers/{ControllerName}.php`
- CRUD methods: index, add, store, edit, update, destroy, show
- Authorization checks
- Validation using ValidationHelper
- Transaction support

### Views

[](#views)

- `resources/views/{gmenu}/{url}/list.blade.php`
- `resources/views/{gmenu}/{url}/add.blade.php`
- `resources/views/{gmenu}/{url}/edit.blade.php`
- `resources/views/{gmenu}/{url}/show.blade.php`

### JavaScript

[](#javascript)

- `resources/views/js/{dmenu}.blade.php`

### Database Configuration

[](#database-configuration)

- Menu registration in `sys_dmenu`
- Table configuration in `sys_table`
- Authorization in `sys_auth`

Configuration
-------------

[](#configuration)

File konfigurasi: `config/msj-generator.php`

```
return [
    'default_layout' => 'manual',
    'default_gmenu' => 'KOP001',
    'default_dmenu' => 'KOP999',
    // ...
];
```

Database Requirements
---------------------

[](#database-requirements)

Package ini memerlukan tabel berikut di database:

- `sys_gmenu` - Group menu
- `sys_dmenu` - Detail menu
- `sys_table` - Table configuration
- `sys_auth` - Authorization configuration
- `sys_roles` - Roles
- `sys_log` - System logs (optional)

Examples
--------

[](#examples)

### Example 1: Generate CRUD untuk tabel `mst_anggota`

[](#example-1-generate-crud-untuk-tabel-mst_anggota)

```
php artisan msj:make crud mst_anggota --gmenu=KOP001 --dmenu=KOP001 --layout=manual
```

### Example 2: Generate menggunakan wizard

[](#example-2-generate-menggunakan-wizard)

```
php artisan msj:make menu
```

Kemudian ikuti wizard:

1. Pilih layout: `manual`
2. Pilih gmenu: `KOP001`
3. Masukkan dmenu: `KOP001`
4. Masukkan menu name: `Data Anggota`
5. Masukkan URL: `data-anggota`
6. Pilih tabel: `mst_anggota`
7. Konfirmasi generate

Development
-----------

[](#development)

### Run Tests

[](#run-tests)

```
composer test
```

### Code Style

[](#code-style)

```
composer pint
```

License
-------

[](#license)

Proprietary License. Copyright (c) 2024 PT Multi Spunindo Jaya Tbk. All Rights Reserved.

This software is the exclusive property of PT Multi Spunindo Jaya Tbk. Unauthorized use, copying, modification, distribution, or reproduction is strictly prohibited. Please see [License File](LICENSE) for more information.

Contributing
------------

[](#contributing)

Contributions are closed! Please feel free to email me to contribute the project.

Support
-------

[](#support)

For support, email  or open an issue on GitHub.

Credits
-------

[](#credits)

- PT Multi Spunindo Jaya Tbk
- MSJKoperasi Team
- MSJ Framework Team (MSJ IT)

###  Health Score

38

—

LowBetter than 85% of packages

Maintenance73

Regular maintenance activity

Popularity6

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity58

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

Recently: every ~7 days

Total

30

Last Release

152d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/46c4f93aa1fc68c5c87dd54c8c9783a9412e2e8aa3902f70c410a8ebaa29153f?d=identicon)[reysilvaa12](/maintainers/reysilvaa12)

---

Top Contributors

[![reysilvaa](https://avatars.githubusercontent.com/u/53205797?v=4)](https://github.com/reysilvaa "reysilvaa (83 commits)")

---

Tags

frameworklaravelscaffoldinggeneratorcode generatorartisanbladecrudmodel generatorcontroller generatormsjlaravel-prompts

###  Code Quality

TestsPHPUnit

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/msjit-msjframework/health.svg)

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

###  Alternatives

[amranidev/scaffold-interface

A Smart CRUD Generator For Laravel

92120.7k1](/packages/amranidev-scaffold-interface)[tomatophp/tomato

TomatoPHP is built to make it easy to develop web apps and API by generating files of CRUD operations and support helpers of tonnes of functions to make it easy to manage and use framework services.

1634.8k](/packages/tomatophp-tomato)

PHPackages © 2026

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