A package to generate modules for a Laravel project.

Overview

Laravel Modular

A package to generate modules for a Laravel project.

Requirements

  1. PHP 7.4 or greater
  2. Laravel version 8

Installation

Install using composer:

composer require dptsi/laravel-modular

Usage

  1. (Optional) To change application namespace, run:

    php artisan app:name Custom\Namespace

    Note: All namespace inside app directory (app/) will change into custom namespace.

    Note: in Mac OS or Linux use double backslash. Custom\\Namespace.

  2. To create a new module, run:

    php artisan module:make ModuleName

    By default this will create a new module using mvc skeleton and sqlsrv database configuration.

    Note: the module name must be in StudlyCase

  3. If you want to create a new module with a specific skeleton you can use --skeleton or -S option. Supported skeleton onion and mvc.

    php artisan module:make ModuleName --skeleton onion
    php artisan module:make ModuleName -S onion
  4. If you want to create a new modul using specific database you can use --database or -D option. Supported database sqlsrv, mysql and pgsql.

    php artisan module:make ModuleName --database mysql
    php artisan module:make ModuleName --D pgsql
Comments
  • hide module provide command

    hide module provide command

    hanya disembunyikan dari php artisan list, tetapi masih berfungsi jika dipanggil karena command-command tersebut kemungkinan besar tidak akan dipanggil secara langsung oleh pengguna

    opened by ersadishla 0
  • convert name argument to studly case

    convert name argument to studly case

    menyelesaikan permasalahan ketika pengguna tidak menggunakan StudlyCase untuk penamaan module ketika memanggil command sekarang argument name bisa menerima inputan dalam bentuk apapun, karena secara otomatis akan dikonversi ke StudlyCase

    php artisan module:make NamaModul
    
    php artisan module:make namaModul
    
    php artisan module:make nama_modul
    
    php artisan module:make nama-modul
    

    semua command di atas akan meng-generate module NamaModul

    opened by ersadishla 0
  • Hapus method tidak terpakai di BaseModule & perbaikan RouteServiceProvider modul

    Hapus method tidak terpakai di BaseModule & perbaikan RouteServiceProvider modul

    Method defaultModuleAction() dari BaseModule sudah tidak terpakai sejak commit 7b6f8fd0fda15e3b930179e7b66e6ea7fe58ee66. Default action dari setiap modul sekarang diatur di RouteServiceProvider setiap modul agar dapat di-cache.

    Route yang didaftarkan di RouteServiceProvider setiap modul harus dimasukkan ke dalam closure melalui \Illuminate\Foundation\Support\Providers\RouteServiceProvider::routes() agar dapat di-cache.

    opened by durianpeople 0
  • Command untuk mengubah application namespace tidak mengubah namespace di config/modules.php

    Command untuk mengubah application namespace tidak mengubah namespace di config/modules.php

    Jika kita membuat module baru terlebih dahulu baru kemudian mengubah application namespace, maka namespace pada atribut module_class di file config/modules.php tidak berubah.

    bug 
    opened by ricesky 0
  • Bump PHP version to ^8.0 and Laravel to ^9.0

    Bump PHP version to ^8.0 and Laravel to ^9.0

    Laravel Upgrade Guide Checklist (v8.0 to v9.0) (https://laravel.com/docs/9.x/upgrade):

    • [x] Updating Dependencies
      • [x] PHP 8.0.2 requirement
      • [x] laravel/framework version bump

    Lang directory changes does not affect the library -- we directly use Service Provider for this

    opened by durianpeople 2
Releases(v3.0.1)
  • v3.0.1(Jun 8, 2021)

    Notes

    Patches

    1. When creating a new module (php artisan module:make ModuleName), don't have to write ModuleName in StudlyCase
    2. Hide provider command (php artisan module:provide-*)
    Source code(tar.gz)
    Source code(zip)
  • v3.0.0(May 20, 2021)

    Notes

    Breaking Changes

    1. \Dptsi\Modular\Base\BaseModule::defaultModuleAction method is removed. Add your module's default route to each module's RouteServiceProvider::boot() instead.

    Patches

    1. app:name command now will also change modules config (config/modules.php) (issue #2)
    2. Modules service providers are now booted properly (issue #4)
    Source code(tar.gz)
    Source code(zip)
  • v2.0.0(May 7, 2021)

    Notes

    Change Log

    1. Changed facade class name: Dptsi\Modular\Facade\ModuleManager to Dptsi\Modular\Facade\Module

    2. Changed class name Dptsi\Modular\Base\Module to Dptsi\Modular\Base\BaseModule

    Source code(tar.gz)
    Source code(zip)
  • v1.0.0(May 2, 2021)

Owner
DPTSI
Direktorat Pengembangan Teknologi dan Sistem Informasi, Institut Teknologi Sepuluh Nopember
DPTSI
Generates and handles Modules for Laravel

L5Modular Keep Your Laravel App Organized This package allows you to organize your Laravel project in a modular manner. You can simply drop or generat

Artem Schander 212 Jan 1, 2023
Boilerplate code for protecting a form with proof of work. Uses javascript in the browser to generate the hashcash and PHP on the server to generate the puzzle and validate the proof of work.

Boilerplate code for protecting a form with proof of work. Uses javascript in the browser to generate the hashcash and PHP on the server to generate the puzzle and validate the proof of work.

Jameson Lopp 28 Dec 19, 2022
Generate trends for your models. Easily generate charts or reports.

Laravel Trend Generate trends for your models. Easily generate charts or reports. Support us Like our work? You can support us by purchasing one of ou

Flowframe 139 Dec 27, 2022
Laravel package to generate and to validate a UUID according to the RFC 4122 standard. Only support for version 1, 3, 4 and 5 UUID are built-in.

Laravel Uuid Laravel package to generate and to validate a universally unique identifier (UUID) according to the RFC 4122 standard. Support for versio

Christoph Kempen 1.7k Dec 28, 2022
Laravel Package to generate CRUD Files using TALL Stack

tall-crud-generator Laravel Package to generate CRUD Files using TALL Stack Requirements Make sure that Livewire is installed properly on your project

AscSoftwares 75 Jan 2, 2023
The package lets you generate TypeScript interfaces from your Laravel models.

Laravel TypeScript The package lets you generate TypeScript interfaces from your Laravel models. Introduction Say you have a model which has several p

Boris Lepikhin 296 Dec 24, 2022
This Package helps you in laravel application to log all desired activity for each request from request entry point to generate response at a single snapshot.

Laravel Scenario Logger This Package helps you in laravel application to log all desired activity for each request from request entry point to generat

Mehrdad Mahdian 6 Sep 27, 2021
A laravel package to generate model hashid based on model id column.

Laravel Model Hashid A package to generate model hash id from the model auto increment id for laravel models Installation Require the package using co

Touhidur Rahman 13 Jan 20, 2022
A laravel package to generate class files from stub files.

Laravel Stub Generator A php laravel package to generate useable php files from given stub files . Installation Require the package using composer: co

Touhidur Rahman 31 Dec 29, 2022
Otpify is a Laravel package that provides a simple and elegant way to generate and validate one time passwords.

Laravel Otpify ?? Introduction Otpify is a Laravel package that provides a simple and elegant way to generate and validate one time passwords. Install

Prasanth Jayakumar 2 Sep 2, 2022
This package provides a trait that will generate a unique uuid when saving any Eloquent model.

Generate slugs when saving Eloquent models This package provides a trait that will generate a unique uuid when saving any Eloquent model. $model = new

Abdul Kudus 2 Oct 14, 2021
A simple package that helps PHP developers to generate the QR code signature as per Zakat authority (ZATCA) requirements of Saudi Arabia.

A PHP package that implements the e-invoice QR code signature requirements as designed by the Zakat authority of Saudi Arabia. How to install? compose

Muktar Sayed Saleh 5 Jun 13, 2022
A package to generate YouTube-like IDs for Eloquent models

Laravel Hashids This package provides a trait that will generate hashids when saving any Eloquent model. Hashids Hashids is a small package to generat

Λгi 25 Aug 31, 2022
Laravel 2-Step Verification is a package to add 2-Step user authentication to any Laravel project easily.

Laravel 2-Step verification is a package to add 2-Step user authentication to any Laravel project easily. It is configurable and customizable. It uses notifications to send the user an email with a 4-digit verification code. Laravel 2-Step Authentication Verification for Laravel. Can be used in out the box with Laravel's authentication scaffolding or integrated into other projects.

Jeremy Kenedy 204 Dec 23, 2022
Easily add a full Laravel blog (with built in admin panel and public views) to your laravel project with this simple package.

Webdevetc BlogEtc - Complete Laravel Blog Package Quickly add a blog with admin panel to your existing Laravel project. It has everything included (ro

WebDevEtc. 227 Dec 25, 2022
Auto generate routes for Laravel Livewire components

livewire-auto-routes Auto generate routes for Laravel Livewire Components. Requirements Livewire 2 Laravel 8 php 8 Installation composer require tanth

Tina Hammar 19 May 11, 2022
Auto Generate laravel api Documentation

Laravel Dark Documentation Generator ?? You can create Documentation for your api easily by using this library Installation: Require this package with

HusseinAlaa 6 May 8, 2022
Generate form validators for Laravel: an extension of way/generators

Laravel Form Validator Contents Introduction Installation Usage Example Tests Introduction After using Jeffrey Way's Generator and his Validator packa

John Evans 6 Jan 14, 2022
Generate services in Laravel with the artisan command

Laravel Service Generator Quickly generate services for your projects! Table of Contents Features Installation Usage Generate services Generate servic

Tim Wassenburg 15 Dec 2, 2022