PHPackages                             danielemontecchi/laravel-custom-makes - 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. [CLI &amp; Console](/categories/cli)
4. /
5. danielemontecchi/laravel-custom-makes

ActiveLibrary[CLI &amp; Console](/categories/cli)

danielemontecchi/laravel-custom-makes
=====================================

Easily create and manage custom make: commands in Laravel using a reusable stub system and a guided CLI wizard.

v1.0.5(10mo ago)0124↓100%MITPHPPHP ^8.1 || ^8.2 || ^8.3 || ^8.4CI passing

Since Apr 21Pushed 10mo ago1 watchersCompare

[ Source](https://github.com/danielemontecchi/laravel-custom-makes)[ Packagist](https://packagist.org/packages/danielemontecchi/laravel-custom-makes)[ Docs](https://danielemontecchi.com)[ RSS](/packages/danielemontecchi-laravel-custom-makes/feed)WikiDiscussions main Synced today

READMEChangelog (3)Dependencies (4)Versions (7)Used By (0)

Laravel Custom Makes
====================

[](#laravel-custom-makes)

[![Latest Version on Packagist](https://camo.githubusercontent.com/6339d852dc2f05da3a05f64ce69673b58af13fab2556852e08042a25436b06c2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f64616e69656c656d6f6e7465636368692f6c61726176656c2d637573746f6d2d6d616b65732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/danielemontecchi/laravel-custom-makes)[![Total Downloads](https://camo.githubusercontent.com/5065430cfe9c1cc6306becf4cb0314fc421ceef7122349605d692abc1dad51a9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f64616e69656c656d6f6e7465636368692f6c61726176656c2d637573746f6d2d6d616b65732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/danielemontecchi/laravel-custom-makes)[![GitHub Tests Action Status](https://camo.githubusercontent.com/0558710ad524afe844106a8bd0f0f282b55473313d5d3295a9ad4bae1832d621/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f64616e69656c656d6f6e7465636368692f6c61726176656c2d637573746f6d2d6d616b65732f74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/danielemontecchi/laravel-custom-makes/actions/workflows/tests.yml)[![Quality Gate Status](https://camo.githubusercontent.com/8d38a1539cdb6803249696c9dc70607b7c7622163f617eda10415d9c97aaa474/68747470733a2f2f736f6e6172636c6f75642e696f2f6170692f70726f6a6563745f6261646765732f6d6561737572653f70726f6a6563743d64616e69656c656d6f6e7465636368695f6c61726176656c2d637573746f6d2d6d616b6573266d65747269633d616c6572745f737461747573)](https://sonarcloud.io/summary/new_code?id=danielemontecchi_laravel-custom-makes)[![License: MIT](https://camo.githubusercontent.com/942e017bf0672002dd32a857c95d66f28c5900ab541838c6c664442516309c8a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d626c75652e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Documentation](https://camo.githubusercontent.com/09e816ae34b01c0a0c356178a99f4041e3c82696002ef2dd521eb5b0f16c6ace/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f646f63732d617661696c61626c652d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](https://danielemontecchi.github.io/laravel-custom-makes)

Generate custom Laravel classes using reusable stubs with Artisan.

---

📦 Installation
--------------

[](#-installation)

You can install the package via Composer:

```
composer require danielemontecchi/laravel-custom-makes
```

⚙️ Configuration
----------------

[](#️-configuration)

You can optionally publish the config file:

```
php artisan vendor:publish --tag=laravel-custom-makes-config
```

This will create `config/laravel-custom-makes.php` with the following options:

- `stubs_path`: path for storing custom stub files (default: `stubs`)

🚀 Usage
-------

[](#-usage)

### Create a custom stub

[](#create-a-custom-stub)

To define a new generator stub:

```
php artisan create:make service
```

This creates a stub file:

```
stubs/service.stub

```

If the stub already exists, the command will abort.

The generated stub will contain a simple template.

### Generate a class from a custom stub

[](#generate-a-class-from-a-custom-stub)

Use `make:custom` with the stub type and class name:

```
php artisan make:custom service UserService
```

This will create:

```
app/Services/UserService.php

```

If no name is passed, it will generate (or suggest) the stub instead.

> You can also nest namespaces, e.g. `Admin/UserService` will generate `app/Services/Admin/UserService.php`

### Listing available custom generators

[](#listing-available-custom-generators)

Run the following to see all available custom stubs:

```
php artisan make:custom-list
```

The command filters out Laravel native stub types.

📂 Stub management
-----------------

[](#-stub-management)

Custom stubs are stored in:

```
stubs/

```

You can edit or remove these files manually. Stub content uses placeholders like `{{ namespace }}`, `{{ class }}`, etc.

### ✅ Supported placeholders

[](#-supported-placeholders)

All stub templates can include the following placeholders:

- `{{ namespace }}`: Fully-qualified namespace of the class
- `{{ class }}`: The class name
- `{{ name }}`: The raw input name

🧪 Running tests
---------------

[](#-running-tests)

To run the test suite:

```
./vendor/bin/pest
```

Tests are powered by Pest and Orchestra Testbench.

---

License
-------

[](#license)

Laravel Custom Makes is open-source software licensed under the **MIT license**. See the [LICENSE.md](LICENSE.md) file for full details.

---

Made with ❤️ by [Daniele Montecchi](https://danielemontecchi.com)

###  Health Score

36

—

LowBetter than 83% of packages

Maintenance54

Moderate activity, may be stable

Popularity12

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 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 ~3 days

Total

6

Last Release

318d ago

PHP version history (3 changes)v1.0.0PHP ^8.2

v1.0.4PHP ^8.2 || ^8.3 || ^8.4

v1.0.5PHP ^8.1 || ^8.2 || ^8.3 || ^8.4

### Community

Maintainers

![](https://www.gravatar.com/avatar/8893e23896e96d0984bc8803307baa52fd63e7e2c08c4048d90a95023f134864?d=identicon)[danielemontecchi](/maintainers/danielemontecchi)

---

Top Contributors

[![danielemontecchi](https://avatars.githubusercontent.com/u/2247871?v=4)](https://github.com/danielemontecchi "danielemontecchi (20 commits)")

---

Tags

artisanartisan-makeclicustom-commandsgeneratorslaravellaravel-packagemakephpclilaravelstubsartisangeneratorsmakecommandscustom

###  Code Quality

TestsPest

### Embed Badge

![Health badge](/badges/danielemontecchi-laravel-custom-makes/health.svg)

```
[![Health](https://phpackages.com/badges/danielemontecchi-laravel-custom-makes/health.svg)](https://phpackages.com/packages/danielemontecchi-laravel-custom-makes)
```

###  Alternatives

[nunomaduro/laravel-console-menu

Laravel Console Menu is an output method for your Laravel/Laravel Zero commands.

815406.6k40](/packages/nunomaduro-laravel-console-menu)[nunomaduro/laravel-console-task

Laravel Console Task is a output method for your Laravel/Laravel Zero commands.

2582.1M10](/packages/nunomaduro-laravel-console-task)[nunomaduro/laravel-console-summary

A Beautiful Laravel Console Summary for your Laravel/Laravel Zero commands.

661.9M2](/packages/nunomaduro-laravel-console-summary)[nunomaduro/laravel-console-dusk

Laravel Console Dusk allows the usage of Laravel Dusk in Laravel/Laravel Zero artisan commands.

16254.4k6](/packages/nunomaduro-laravel-console-dusk)[rahul900day/laravel-console-spinner

Laravel Console Spinner is a spinner output for Laravel command line.

76123.3k1](/packages/rahul900day-laravel-console-spinner)[socialengine/sniffer-rules

A Lumen 5 and Laravel 5 SquizLabs Code Sniffer 2.0 artisan command. Detect violations of a defined coding standard. It helps your code remains clean and consistent.

1248.2k1](/packages/socialengine-sniffer-rules)

PHPackages © 2026

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