• Stars
    star
    5,236
  • Rank 7,504 (Top 0.2 %)
  • Language
    PHP
  • License
    MIT License
  • Created almost 8 years ago
  • Updated about 1 month ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Module Management In Laravel

Laravel-Modules

Latest Version on Packagist Software License Build Status Scrutinizer Coverage Quality Score Total Downloads

Laravel laravel-modules
5.4 ^1.0
5.5 ^2.0
5.6 ^3.0
5.7 ^4.0
5.8 ^5.0
6.0 ^6.0
7.0 ^7.0
8.0 ^8.0
9.0 ^9.0
10.0 ^10.0

nwidart/laravel-modules is a Laravel package which created to manage your large Laravel app using modules. Module is like a Laravel package, it has some views, controllers or models. This package is supported and tested in Laravel 10.

This package is a re-published, re-organised and maintained version of pingpong/modules, which isn't maintained anymore. This package is used in AsgardCMS.

With one big added bonus that the original package didn't have: tests.

Find out why you should use this package in the article: Writing modular applications with laravel-modules.

Install

To install through Composer, by run the following command:

composer require nwidart/laravel-modules

The package will automatically register a service provider and alias.

Optionally, publish the package's configuration file by running:

php artisan vendor:publish --provider="Nwidart\Modules\LaravelModulesServiceProvider"

Autoloading

By default, the module classes are not loaded automatically. You can autoload your modules using psr-4. For example:

{
  "autoload": {
    "psr-4": {
      "App\\": "app/",
      "Modules\\": "Modules/",
      "Database\\Factories\\": "database/factories/",
      "Database\\Seeders\\": "database/seeders/"
  }

}

Tip: don't forget to run composer dump-autoload afterwards.

Documentation

You'll find installation instructions and full documentation on https://docs.laravelmodules.com/.

Credits

About Nicolas Widart

Nicolas Widart is a freelance web developer specialising on the Laravel framework. View all my packages on my website, or visit my website.

License

The MIT License (MIT). Please see License File for more information.

More Repositories

1

DbExporter

Export your database as a Laravel Migration. And export your DB data as a seed file. Finally sync all this with your remote server.
PHP
372
star
2

laravel-menus

Laravel Menu Management
PHP
150
star
3

Laravel-broadway

CQRS/Event Sourcing for laravel. Laravel adapter for Broadway.
PHP
123
star
4

Laravel-Broadway-Demo

This is a test application using https://github.com/qandidate-labs/broadway
CSS
36
star
5

nwidart-docs

HTML
32
star
6

laravel-videoable

Attach Videos to your Eloquent Models
PHP
17
star
7

HttpStatus-l4-package

Laravel 4 Packages. Adds 403,404,500 and 503 customizable error pages.
PHP
14
star
8

laravel-actuator

Add health endpoints to your applications
PHP
13
star
9

laravel-normalizer

Laravel package to normalize your data before saving into the database.
PHP
12
star
10

portfolio

Source code of my personal portfolio.
CSS
10
star
11

projectLister

Laravel package to list repositories on Github, Bitbucket and Sourceforge.
PHP
9
star
12

MoneyFormatter

A package used for money formatting
PHP
9
star
13

phpstorm-vue-snippets

PHPStorm VueJS Live templates. Based of https://github.com/sdras/vue-vscode-snippets
9
star
14

vue-symfony4

Vue
6
star
15

tech-videos

Organise learning sessions in your company to watch tech videos.
Java
4
star
16

Themify-l5

PHP
4
star
17

composer-generator

Laravel 4 Composer.json generator service.
PHP
3
star
18

cubesNcircles

cubesNcircles
JavaScript
3
star
19

laravel-modules-custom-service-provider

PHP
2
star
20

Laravel-forecast

Laravel-forecast provides a service provider and a facade arround the Forecast-php wrapper.
PHP
2
star
21

forecast-php

PHP API Wrapper for Forecast.io
PHP
2
star
22

rematch-typescript

Using rematch in typescript projects (https://github.com/rematch/rematch)
TypeScript
2
star
23

activity

Activity lets you list your current activity on Github. Soon from Bitbucket as well.
PHP
2
star
24

MoneyFormatter-Laravel

Laravel integration for my MoneyFormatter Package
PHP
2
star
25

Alys-Google-Maps-Organiser

Laravel App, to manage clients and their corresponding markers for Google Maps.
PHP
2
star
26

pda

Personal Diablo Assistant
PHP
1
star
27

spring-modular-tests

Java
1
star
28

modules-routes-tests

https://github.com/nWidart/laravel-modules/issues/755
PHP
1
star
29

BugTrack

Simple bug tracking app
PHP
1
star
30

nw-cleanV2

PHP
1
star
31

trivago-cqrs-es-workshop-2017

Workshop from https://github.com/ShittySoft/trivago-cqrs-es-workshop-2017
PHP
1
star
32

Grimdawntrade

PHP
1
star
33

twitter-es

Twitter clone, in event sourcing with Prooph
PHP
1
star
34

spring-boot-bean-overrides

Trying to reproduce a bean overriding issue
Java
1
star
35

heaj_trashsquare

PHP
1
star
36

export-wrapper

A PHP wrapper around Sonata-Exporter, for ease of use
PHP
1
star
37

axon-webinar

cqrs/event sourcing in java with Axon framework
Java
1
star
38

PhilipBrownBasket

This is a test ecommerce application using philipbrown/basket package.
PHP
1
star
39

spring-boot-starter-jwt

Java
1
star
40

spring-data-multi-datasource

Java
1
star
41

Product-Custom-Post-Type---Taxonomy

A Wordpress Custom Post Type and Taxonomy.
PHP
1
star
42

Alys-Zonetrial-Wordpress-theme

PHP
1
star
43

ci_trashsquare

Trashsquare made on CodeIgniter
PHP
1
star
44

FAQcms

Multilang FAQ management system.
JavaScript
1
star