PHPackages                             joshlogic/hotswap - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. joshlogic/hotswap

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

joshlogic/hotswap
=================

A Laravel package that enables modular development by generating self-contained packages with routes, migrations, service providers, and frontend scaffolding.

0101PHP

Since Feb 20Pushed 2mo agoCompare

[ Source](https://github.com/JoshuaHeathcote1987/Laravel_Hotswap)[ Packagist](https://packagist.org/packages/joshlogic/hotswap)[ RSS](/packages/joshlogic-hotswap/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

 [![Hotswap Logo](logo.png)](logo.png)

Hotswap
=======

[](#hotswap)

Hotswap is a Laravel package that enables modular development by generating self-contained packages with their own routes, migrations, service providers, and frontend scaffolding. It’s designed to make building reusable Laravel + Inertia + Vite modules simple and fast.

🚀 Installation
--------------

[](#-installation)

Install the package via Packagist

```
composer require joshlogic/hotswap:dev-main

```

Publish the core scaffolding:

```
php artisan hotswap:scaffold

```

⚡ Usage
-------

[](#-usage)

Create a new module (e.g., ecommerce):

```
php artisan hotswap:create ecommerce

```

Rebuild autoload files:

```
composer dump-autoload

```

Compile frontend assets:

```
npm run build

```

Run the development server:

```
php artisan serve

```

🔍 Models, Controllers and Migrations
------------------------------------

[](#-models-controllers-and-migrations)

Easily generate models, controllers, and migrations within a specific module (e.g., ecommerce) using the following commands:

Create a Model (with Migration &amp; Controller)

```
php artisan hotswap:model ecommerce Product -mcr

```

Create a Controller

```
php artisan hotswap:controller ecommerce Product

```

Create a Model

```
php artisan hotswap:model ecommerce Product

```

Create a Migration

```
php artisan hotswap:migration ecommerce products

```

⚠️ As a safety precaution run:

```
composer dump-autoload

```

🤖 Other commands
----------------

[](#-other-commands)

Manage your modules with the following commands:

### Pause a Module

[](#pause-a-module)

Temporarily disable a module so it cannot be accessed by users (e.g., ecommerce):

```
php artisan hotswap:pause ecommerce

```

### Resume a Module

[](#resume-a-module)

Re-enable a previously paused module:

```
php artisan hotswap:play ecommerce

```

### Remove a Module

[](#remove-a-module)

Permanently delete a module:

```
php artisan hotswap:remove ecommerce

```

⚠️ As a safety precaution run:

```
composer dump-autoload

```

📷 Export images
---------------

[](#-export-images)

Export images from hotswap module to the root public folder:

```
php artisan vendor:publish --tag=public --force

```

📂 What you get
--------------

[](#-what-you-get)

Modular routes

Independent migrations &amp; seeders

Built-in React (Inertia.js) page scaffolding

Automatic Vite config updates

Service provider registration

📝 License
---------

[](#-license)

Hotswap is open-source software licensed under the MIT license.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance56

Moderate activity, may be stable

Popularity10

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity12

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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/11cc816719dbf660091b069ae6c5e0cf7418a973949fae640912fe717f530dc6?d=identicon)[Randy\_Johnson](/maintainers/Randy_Johnson)

---

Top Contributors

[![JoshuaHeathcote1987](https://avatars.githubusercontent.com/u/26278295?v=4)](https://github.com/JoshuaHeathcote1987 "JoshuaHeathcote1987 (1 commits)")

### Embed Badge

![Health badge](/badges/joshlogic-hotswap/health.svg)

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

###  Alternatives

[symfony/polyfill-php71

Symfony polyfill backporting some PHP 7.1+ features to lower PHP versions

26895.0k13](/packages/symfony-polyfill-php71)[stidges/country-flags

A small package to convert a country code to the corresponding country flag emoji

29256.6k4](/packages/stidges-country-flags)

PHPackages © 2026

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