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(9mo ago)01MITPHPPHP &gt;=8.1

Since Sep 24Pushed 5mo agoCompare

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

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

29

—

LowBetter than 57% of packages

Maintenance66

Regular maintenance activity

Popularity1

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity37

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

273d ago

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

v0.1.2PHP &gt;=8.1

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/36492134?v=4)[Moses Olayemi](/maintainers/AtillaVanilla)[@atillavanilla](https://github.com/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

[laravel/ai

The official AI SDK for Laravel.

1.0k3.2M193](/packages/laravel-ai)[illuminate/queue

The Illuminate Queue package.

21332.6M1.6k](/packages/illuminate-queue)[roots/acorn

Framework for Roots WordPress projects built with Laravel components.

9762.4M130](/packages/roots-acorn)[moonshine/moonshine

Laravel administration panel

1.3k253.1k81](/packages/moonshine-moonshine)[laravel/folio

Page based routing for Laravel.

603583.7k33](/packages/laravel-folio)[erag/laravel-lang-sync-inertia

A powerful Laravel package for syncing and managing language translations across backend and Inertia.js (Vue/React/Svelte) frontends, offering effortless localization, auto-sync features, and smooth multi-language support for modern Laravel applications.

4925.3k](/packages/erag-laravel-lang-sync-inertia)

PHPackages © 2026

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