PHPackages                             centrust/nova-modules - 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. centrust/nova-modules

ActiveLibrary[Framework](/categories/framework)

centrust/nova-modules
=====================

Nova Modular Architrchter

2.0.3(2mo ago)0107MITPHPPHP ^8.1

Since Dec 17Pushed 2mo ago1 watchersCompare

[ Source](https://github.com/centrust/nova-modules)[ Packagist](https://packagist.org/packages/centrust/nova-modules)[ Docs](https://github.com/centrust/nova-modules)[ RSS](/packages/centrust-nova-modules/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (10)Dependencies (16)Versions (12)Used By (0)

Laravel Nova Modular Architecture
=================================

[](#laravel-nova-modular-architecture)

[![Latest Version on Packagist](https://camo.githubusercontent.com/f7144380a76731e99a32e97f09c0f6515ad8eecff2c2701a48919563ece7bcd2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f63656e74727573742f6e6f76612d6d6f64756c65732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/centrust/nova-modules)[![GitHub Tests Action Status](https://camo.githubusercontent.com/f3d2ee47781809ab75f3a3224c53db300a6d15f0a67e182415ba12144d5bfdc4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f63656e74727573742f6e6f76612d6d6f64756c65732f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/centrust/nova-modules/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/7496dde3cdc5d473fd1ec135128dcdec86dbe54f5824b912330a6540850ddffe/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f63656e74727573742f6e6f76612d6d6f64756c65732f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/centrust/nova-modules/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/b71ef8561e3768fb7183d76bb1ca38697ba421601dafd0d3f96923dc66f3506b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f63656e74727573742f6e6f76612d6d6f64756c65732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/centrust/nova-modules)

This package provides a modular architecture for Laravel Nova, allowing you to organize your Nova resources, actions, policies, and more into dedicated modules. It helps keep your `app/Nova` directory clean and improves code maintainability by grouping related functionality.

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

[](#installation)

You can install the package via composer:

```
composer require centrust/nova-modules
```

You can publish the config file with:

```
php artisan vendor:publish --tag="nova-modules-config"
```

Module Architecture
-------------------

[](#module-architecture)

The package organizes modules under the `app/Nova/Modules` directory. Each module has its own subdirectory containing its specific components:

```
app/Nova/Modules/
└── YourModuleName/
    ├── Actions/
    ├── Enums/
    ├── Filters/
    ├── Lenses/
    ├── Metrics/
    ├── Policies/
    ├── Resources/
    ├── Rules/
    └── Services/

```

Usage
-----

[](#usage)

The package provides several Artisan commands to generate modules and their components.

### Create a New Module

[](#create-a-new-module)

To create the directory structure for a new module:

```
php artisan module:create {name?}
```

This command will ask for the module name (if not provided) and generate the standard directory structure.

### Generate Module Components

[](#generate-module-components)

You can generate specific components within a module using the following commands:

#### Create a Resource

[](#create-a-resource)

```
php artisan module:resource {module?} {resource?} {model?}
```

Prompts for (if not provided): Module name, Resource name, and Model name.

#### Create an Action

[](#create-an-action)

```
php artisan module:action {module?} {action?}
```

Prompts for (if not provided): Module name and Action name.

#### Create a Policy

[](#create-a-policy)

```
php artisan module:policy {module?} {policy?} {model?}
```

Prompts for (if not provided): Module name, Policy name, and Model name. This generates a standard Laravel policy that applies to the Eloquent Model.

#### Create a Nova Policy

[](#create-a-nova-policy)

```
php artisan module:nova-policy {module?} {policy?} {resource?}
```

Prompts for (if not provided): Module name, Policy name, and Resource class. This generates a Nova-specific policy where the resource itself is passed instead of the Model. This is specifically useful for Nova V5 where policies can be directly applied to resources. Like: public static $policy =nova-policy::class; inside the nova resource

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

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

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Security Vulnerabilities
------------------------

[](#security-vulnerabilities)

Please review [our security policy](../../security/policy) on how to report security vulnerabilities.

Credits
-------

[](#credits)

- [Salah](https://github.com/centrust)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

44

—

FairBetter than 91% of packages

Maintenance86

Actively maintained with recent releases

Popularity12

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 71.4% 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 ~85 days

Recently: every ~136 days

Total

11

Last Release

66d ago

Major Versions

1.0.6 → 2.0.02025-06-11

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/27489191?v=4)[centrust](/maintainers/centrust)[@centrust](https://github.com/centrust)

---

Top Contributors

[![Elshaden](https://avatars.githubusercontent.com/u/33955172?v=4)](https://github.com/Elshaden "Elshaden (10 commits)")[![centrust](https://avatars.githubusercontent.com/u/27489191?v=4)](https://github.com/centrust "centrust (4 commits)")

---

Tags

laravelcentrustnova-modules

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/centrust-nova-modules/health.svg)

```
[![Health](https://phpackages.com/badges/centrust-nova-modules/health.svg)](https://phpackages.com/packages/centrust-nova-modules)
```

###  Alternatives

[lunarstorm/laravel-ddd

A Laravel toolkit for Domain Driven Design patterns

18476.4k](/packages/lunarstorm-laravel-ddd)[stephenjude/filament-jetstream

A Laravel starter kit built with Filament inspired by Jetstream.

17758.9k2](/packages/stephenjude-filament-jetstream)[bezhansalleh/filament-plugin-essentials

A collection of essential traits that streamline Filament plugin development by taking care of the boilerplate, so you can focus on shipping real features faster

271.0M26](/packages/bezhansalleh-filament-plugin-essentials)[rawilk/profile-filament-plugin

Profile &amp; MFA starter kit for filament.

3913.7k](/packages/rawilk-profile-filament-plugin)[daniel-cintra/modular

A fast way to develop web apps using Laravel, Vue and Inertia.

1764.0k2](/packages/daniel-cintra-modular)[aurorawebsoftware/arflow

ArFlow is a Laravel package that allows you to implement workflow management for your Laravel Eloquent models.

233.2k2](/packages/aurorawebsoftware-arflow)

PHPackages © 2026

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