PHPackages                             mrpunyapal/laravel-extended-commands - 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. mrpunyapal/laravel-extended-commands

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

mrpunyapal/laravel-extended-commands
====================================

This package will have some commands which are not available in laravel.

1.4.0(1mo ago)761776[1 issues](https://github.com/MrPunyapal/laravel-extended-commands/issues)MITPHPPHP ^8.3|^8.4|^8.5CI passing

Since Mar 24Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/MrPunyapal/laravel-extended-commands)[ Packagist](https://packagist.org/packages/mrpunyapal/laravel-extended-commands)[ Docs](https://github.com/mrpunyapal/laravel-extended-commands)[ GitHub Sponsors](https://github.com/MrPunyapal)[ RSS](/packages/mrpunyapal-laravel-extended-commands/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (9)Dependencies (28)Versions (12)Used By (0)

This package has some commands which are not available in laravel.
==================================================================

[](#this-package-has-some-commands-which-are-not-available-in-laravel)

[![Latest Version on Packagist](https://camo.githubusercontent.com/1ae565446d237c255ca091052ea120fe61d4e4c33a8fa00edda2bcf2b75bc9e3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6d7270756e796170616c2f6c61726176656c2d657874656e6465642d636f6d6d616e64732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mrpunyapal/laravel-extended-commands)[![GitHub Tests Action Status](https://camo.githubusercontent.com/889b052b1bcb1a5312ecd86edec544f52b4ff445bb1965a3a90db303122a03e4/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6d7270756e796170616c2f6c61726176656c2d657874656e6465642d636f6d6d616e64732f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/mrpunyapal/laravel-extended-commands/actions?query=workflow%3Arun-tests+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/45e137fb37b24d2b52cb02d74c2393dedd1c47a7a06092cf24c0a2c9353bfa76/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6d7270756e796170616c2f6c61726176656c2d657874656e6465642d636f6d6d616e64732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/mrpunyapal/laravel-extended-commands)

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

[](#installation)

You can install the package via composer:

```
composer require mrpunyapal/laravel-extended-commands
```

You can publish the config file with:

```
php artisan vendor:publish --tag="laravel-extended-commands-config"
```

This is the contents of the published config file:

```
return [
    // Nothing to configure yet.
];
```

Usage
-----

[](#usage)

### Make Builder

[](#make-builder)

```
php artisan make:builder {name}
```

### Make Builder with Model

[](#make-builder-with-model)

```
php artisan make:builder {name} --model={model}
```

### Make Collection

[](#make-collection)

Create a new Eloquent custom collection class. By default the class is generated into the `App\Models\Collections` namespace and extends `Illuminate\Database\Eloquent\Collection`.

```
php artisan make:collection {name}
```

Create a collection with a model generic PHPDoc (adds `@template` and `@extends` in the generated class):

```
php artisan make:collection {name} --model={model}
```

When generating a model you can also scaffold a collection for it and inject a `newCollection()` method into the model using the `--collection` flag:

```
php artisan make:model {name} --collection
```

This will generate `App\Models\Collections\{Name}Collection` and add a `newCollection(array $models = [])` method to the model which returns the new collection instance.

### Make Model with Builder

[](#make-model-with-builder)

```
php artisan make:model {name} --builder
```

### Make Action

[](#make-action)

Create a new action class. By default the class is generated into the `App\Actions` namespace and contains a `handle()` method.

```
php artisan make:action {name}
```

Create an invokable action (generates an `__invoke` method):

```
php artisan make:action {name} --invokable
```

Force overwrite an existing action file:

```
php artisan make:action {name} --force
```

### Make Concern

[](#make-concern)

Create a new concern (trait). By default the trait is generated into the `App\\Concerns` namespace.

```
php artisan make:concern {name}
```

Force overwrite an existing concern file:

```
php artisan make:concern {name} --force
```

### Make Contract

[](#make-contract)

Create a new contract (interface). By default the interface is generated into the `App\\Contracts` namespace.

```
php artisan make:contract {name}
```

Force overwrite an existing contract file:

```
php artisan make:contract {name} --force
```

### Make Facade

[](#make-facade)

Create a new facade class. By default the class is generated into the `App\Facades` namespace and extends `Illuminate\Support\Facades\Facade`.

```
php artisan make:facade {name}
```

The command will automatically generate a snake\_case accessor based on the facade name. For example:

```
php artisan make:facade FileUpload
```

This generates `App\Facades\FileUpload` with accessor `file_upload`.

Force overwrite an existing facade file:

```
php artisan make:facade {name} --force
```

If the name argument is not provided, you will be prompted to enter it:

```
php artisan make:facade
# Enter FacadeName (ex. FileUpload): Payment
```

You can also create facades with namespaces:

```
php artisan make:facade Payment\Stripe
```

This generates `App\Facades\Payment\Stripe` with accessor `stripe`.

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)

- [Punyapal Shah](https://github.com/MrPunyapal)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

51

—

FairBetter than 96% of packages

Maintenance89

Actively maintained with recent releases

Popularity29

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 96.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 ~45 days

Recently: every ~26 days

Total

9

Last Release

50d ago

Major Versions

0.1 → 1.0.02025-03-25

PHP version history (3 changes)0.1PHP ^8.2|^8.3|^8.4

1.0.0PHP ^8.3|^8.4

1.1.0PHP ^8.3|^8.4|^8.5

### Community

Maintainers

![](https://www.gravatar.com/avatar/230c58a4f918ca3e3f2988b38721230698bce88f76ae9087e4377ba0b3a074d5?d=identicon)[MrPunyapal](/maintainers/MrPunyapal)

---

Top Contributors

[![MrPunyapal](https://avatars.githubusercontent.com/u/53343069?v=4)](https://github.com/MrPunyapal "MrPunyapal (81 commits)")[![vivek-mistry](https://avatars.githubusercontent.com/u/32848578?v=4)](https://github.com/vivek-mistry "vivek-mistry (3 commits)")

---

Tags

buildercommandslaravelmakemodellaraveldevMake commandsPunyapal Shahlaravel-extended-commandsmake Builder

###  Code Quality

TestsPest

Static AnalysisPHPStan, Rector

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/mrpunyapal-laravel-extended-commands/health.svg)

```
[![Health](https://phpackages.com/badges/mrpunyapal-laravel-extended-commands/health.svg)](https://phpackages.com/packages/mrpunyapal-laravel-extended-commands)
```

###  Alternatives

[worksome/envy

Automatically keep your .env files in sync.

6871.8M](/packages/worksome-envy)[spatie/laravel-signal-aware-command

Handle signals in artisan commands

16613.2M2](/packages/spatie-laravel-signal-aware-command)[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[spatie/laravel-error-share

Share your Laravel errors to Flare

43965.6k3](/packages/spatie-laravel-error-share)[spatie/laravel-error-solutions

Display solutions on the Laravel error page

9773.5k](/packages/spatie-laravel-error-solutions)[geowrgetudor/command-history

Track Laravel Artisan commands executions inside Laravel Pulse

1324.1k](/packages/geowrgetudor-command-history)

PHPackages © 2026

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