kevinongko/laravel-genode

Opinionated modular structure for Laravel

Installs: 10

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/kevinongko/laravel-genode

1.0.0 2016-11-24 03:56 UTC

This package is not auto-updated.

Last update: 2025-10-12 01:31:25 UTC


README

Laravel Latest Stable Version Latest Unstable Version Build Status StyleCI License

Opinionated modular structure for Laravel

Installation

Composer

Install through composer by running this command:

$ composer require kevinongko/laravel-genode

Service Provider

Add the following code to service providers in config/app.php

'providers' => [

  KevinOngko\LaravelGenode\LaravelGenodeServiceProvider::class,
  
],

Publish the package configuration by running this command:

$ php artisan vendor:publish --provider="KevinOngko\LaravelGenode\LaravelGenodeServiceProvider"

Autoload Modules

Laravel Genode is using wikimedia/composer-merge-plugin to autoload modules, add this to your project's composer.json

"extra": {
  "merge-plugin": {
    "include": [
      "modules/*/composer.json"
    ]
  }
}

Usage

Create new module:

$ php artisan module:new

Enable modules in config/module.php

  'active' => [
     'Module1',
     'Module2
  ],

License

Laravel Genode is open-sourced software licensed under the MIT license