PHPackages                             atilla/submodules - 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. [API Development](/categories/api)
4. /
5. atilla/submodules

ActiveLibrary[API Development](/categories/api)

atilla/submodules
=================

A Laravel package for generating and managing modular API applications

v0.1.3(7mo ago)01MITPHPPHP &gt;=8.1

Since Sep 24Pushed 3mo agoCompare

[ Source](https://github.com/atillavanilla/submodules)[ Packagist](https://packagist.org/packages/atilla/submodules)[ RSS](/packages/atilla-submodules/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (6)Versions (4)Used By (0)

Laravel Submodule Generator
===========================

[](#laravel-submodule-generator)

A Laravel package for generating modular API applications.

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

[](#installation)

Install via Composer:

```
composer require atilla/submodules
```

The package will automatically register its service provider.

Configuration
-------------

[](#configuration)

Publish the configuration file:

```
php artisan vendor:publish --tag=submodules-config
```

This will create `config/submodules.php` where you can customize:

- Modules path
- Base namespace
- Directory structure
- Files to generate
- Route configurations
- View settings

Usage
-----

[](#usage)

### Creating a Module

[](#creating-a-module)

```
php artisan make:module Blog
```

This will generate a new module with the following structure:

```
src/SubModules/Blog/
├── Controllers/
│   └── BlogController.php
├── Models/
│   └── Blog.php
└── Providers/
    └── BlogServiceProvider.php
    ... etc

```

### Options

[](#options)

- `--force` - Overwrite existing module

### Generated Files

[](#generated-files)

Each module includes:

- ServiceProvider
- Controller with CRUD + API actions
- Eloquent Model
- Basic routing configuration

Customization
-------------

[](#customization)

### Custom Stubs

[](#custom-stubs)

Publish the stub files to customize the generated code:

```
php artisan vendor:publish --tag=module-generator-stubs
```

### Configuration

[](#configuration-1)

Key settings in `config/submodules.php`:

```
return [
    'submodules_path' => 'src/SubModules',
    'namespace' => 'SubModules',
    'structure' => [
        'Controllers',
        'Models',
        'Providers',
        // More to come...
    ],
    'files' => [
        'service_provider' => true,
        'controller' => true,
        'model' => true,
        // Configure which files to generate...
    ]
];
```

Requirements
------------

[](#requirements)

- PHP 8.1+
- Laravel 9.0+

License
-------

[](#license)

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance72

Regular maintenance activity

Popularity1

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity36

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% 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 ~4 days

Total

3

Last Release

228d ago

PHP version history (2 changes)0.1.0PHP &gt;=8.2

v0.1.2PHP &gt;=8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/0d26a55eb7fbb70e4ade1f269b1369846a2aefd1f6abb2214d1218f6c681cdcc?d=identicon)[AtillaVanilla](/maintainers/AtillaVanilla)

---

Top Contributors

[![atillavanilla](https://avatars.githubusercontent.com/u/36492134?v=4)](https://github.com/atillavanilla "atillavanilla (21 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/atilla-submodules/health.svg)

```
[![Health](https://phpackages.com/badges/atilla-submodules/health.svg)](https://phpackages.com/packages/atilla-submodules)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[andreaselia/laravel-api-to-postman

Generate a Postman collection automatically from your Laravel API

1.0k586.2k3](/packages/andreaselia-laravel-api-to-postman)[orchestra/canvas

Code Generators for Laravel Applications and Packages

20917.2M158](/packages/orchestra-canvas)[saloonphp/laravel-plugin

The official Laravel plugin for Saloon

805.7M125](/packages/saloonphp-laravel-plugin)[mll-lab/laravel-graphiql

Easily integrate GraphiQL into your Laravel project

683.2M9](/packages/mll-lab-laravel-graphiql)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

226102.4k](/packages/erag-laravel-disposable-email)

PHPackages © 2026

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