msjit/msjframework
Composer 安装命令:
composer require msjit/msjframework
包简介
MSJ Framework - Base Framework for Laravel MSJ Framework
关键字:
README 文档
README
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
- 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 & Select - Pencarian tabel dan field dengan autocomplete
Requirements
- PHP >= 8.2
- Laravel ^11.0|^12.0
- Laravel Prompts ^0.1.0|^0.3.0
Installation
Install package via Composer:
composer require msjit/msjframework
Publish configuration (optional):
php artisan vendor:publish --tag=msj-generator-config
Usage
Interactive Menu
Jalankan command tanpa argument untuk membuka menu interaktif:
php artisan msj:make
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 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
php artisan msj:make controller ExampleController
Generate Model
php artisan msj:make model mst_example
Generate Views
php artisan msj:make views
Commands
msj:make
Hub command untuk semua generator. Menampilkan menu interaktif jika dijalankan tanpa argument.
msj:make:menu
Wizard interaktif untuk generate module lengkap dengan 4 langkah:
- Pilih Layout Type
- Informasi Dasar (gmenu, dmenu, menu name, URL, table)
- Pengaturan Field
- Ringkasan
msj:make:crud {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}
Generate controller MSJ dengan method CRUD.
Options:
--table=- Nama tabel database--gmenu=- Kode group menu--url=- URL slug
msj:make:model {table}
Generate model dari struktur tabel database.
Options:
--force- Menimpa model yang sudah ada
msj:make:views
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
- manual - Controller & 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 & hasil)
Generated Files
Model
app/Models/{ModelName}.php- Auto-detected primary key
- Auto-generated fillable properties
- Timestamps configuration
Controller
app/Http/Controllers/{ControllerName}.php- CRUD methods: index, add, store, edit, update, destroy, show
- Authorization checks
- Validation using ValidationHelper
- Transaction support
Views
resources/views/{gmenu}/{url}/list.blade.phpresources/views/{gmenu}/{url}/add.blade.phpresources/views/{gmenu}/{url}/edit.blade.phpresources/views/{gmenu}/{url}/show.blade.php
JavaScript
resources/views/js/{dmenu}.blade.php
Database Configuration
- Menu registration in
sys_dmenu - Table configuration in
sys_table - Authorization in
sys_auth
Configuration
File konfigurasi: config/msj-generator.php
return [ 'default_layout' => 'manual', 'default_gmenu' => 'KOP001', 'default_dmenu' => 'KOP999', // ... ];
Database Requirements
Package ini memerlukan tabel berikut di database:
sys_gmenu- Group menusys_dmenu- Detail menusys_table- Table configurationsys_auth- Authorization configurationsys_roles- Rolessys_log- System logs (optional)
Examples
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
php artisan msj:make menu
Kemudian ikuti wizard:
- Pilih layout:
manual - Pilih gmenu:
KOP001 - Masukkan dmenu:
KOP001 - Masukkan menu name:
Data Anggota - Masukkan URL:
data-anggota - Pilih tabel:
mst_anggota - Konfirmasi generate
Development
Run Tests
composer test
Code Style
composer pint
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 for more information.
Contributing
Contributions are closed! Please feel free to email me to contribute the project.
Support
For support, email reynaldsilva123@gmail.com or open an issue on GitHub.
Credits
- PT Multi Spunindo Jaya Tbk
- MSJKoperasi Team
- MSJ Framework Team (MSJ IT)
msjit/msjframework 适用场景与选型建议
msjit/msjframework 是一款 基于 Blade 开发的 Composer 扩展包,目前已累计 2 次下载、GitHub Stars 达 4, 最近一次更新时间为 2025 年 12 月 17 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「framework」 「generator」 「crud」 「laravel」 「scaffolding」 「artisan」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 msjit/msjframework 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 msjit/msjframework 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 msjit/msjframework 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
Memio's PrettyPrinter, used to generate PHP code from given Model
PHP Framework HLEB2 is the foundation of the web application. Provides ease of development and application performance.
Gii Generator for double model generation
A PSR-7 compatible library for making CRUD API endpoints
Admin panel generator for Laravel 8 and based on Vuetify Admin, a separate SPA admin framework running on top of REST APIs.
Collection of tools to use the full power of the Enyalius framework
统计信息
- 总下载量: 2
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 20
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: proprietary
- 更新时间: 2025-12-17