PHPackages                             creativeorange/laravel-stubs - 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. creativeorange/laravel-stubs

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

creativeorange/laravel-stubs
============================

Extends artisan with more options.

v4.0.0(3y ago)310.7k↓100%2[4 PRs](https://github.com/creativeorange/laravel-stubs/pulls)MITPHP

Since May 26Pushed 3y ago2 watchersCompare

[ Source](https://github.com/creativeorange/laravel-stubs)[ Packagist](https://packagist.org/packages/creativeorange/laravel-stubs)[ RSS](/packages/creativeorange-laravel-stubs/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (5)Versions (29)Used By (0)

Laravel-stubs
=============

[](#laravel-stubs)

Laravel stubs aims to add some "missing" functionality to the artisan commands that currently exist.

[![Latest Stable Version](https://camo.githubusercontent.com/e7a07aee408222095f3b7ec63c9d7e2bc2fd2a5ec867c2baf978eb4783ff725f/68747470733a2f2f706f7365722e707567782e6f72672f63726561746976656f72616e67652f6c61726176656c2d73747562732f76)](//packagist.org/packages/creativeorange/laravel-stubs)[![Total Downloads](https://camo.githubusercontent.com/e83af1b8e79f82b6f2a11aeda54f205d689b91ed0edd58fbba5f2e7165fcff8f/68747470733a2f2f706f7365722e707567782e6f72672f63726561746976656f72616e67652f6c61726176656c2d73747562732f646f776e6c6f616473)](//packagist.org/packages/creativeorange/laravel-stubs)[![License](https://camo.githubusercontent.com/b1dc0fed9d72fa1e0f7edcf9cdae8792a5800be71e0a1b066f780328187a8948/68747470733a2f2f706f7365722e707567782e6f72672f63726561746976656f72616e67652f6c61726176656c2d73747562732f6c6963656e7365)](//packagist.org/packages/creativeorange/laravel-stubs)

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

[](#installation)

First, pull in the package through Composer via the command line:

```
composer require creativeorange/laravel-stubs ~2.0

```

or add the following to your composer.json file and run `composer update`.

```
"require": {
    "creativeorange/laravel-stubs": "~2.0"
}

```

Commands
--------

[](#commands)

#### Create

[](#create)

- ##### create:user

    [](#createuser)

    Creates a new user for the application. The default model is `\App\User`. Default there will be a unique check on the `email` field. The fields prompted for are: name, email and password.

#### Dispatch

[](#dispatch)

- ##### dispatch:job

    [](#dispatchjob)

    Easy way to dispatch a job.

    ##### Arguments

    [](#arguments)

    - Job - The class of the job. Include the namespace.
    - Arguments - An array of parameters to send along to the constructor of the job.

#### Make

[](#make)

- ##### make:facade

    [](#makefacade)

    Creates a new facade, by default this will be stored in `App/Facades.`A facade will automatically be suffixed with `Facade`.

    ##### Arguments

    [](#arguments-1)

    - Name - The name of the facade.
    - Accessor - The class the facade references to.
- ##### make:interface

    [](#makeinterface)

    Creates a new interface, by default this will be stored in `App/Interfaces`. An interface will always automatically be suffixed with `Interface` according to the PSR naming conventions.

    ##### Arguments

    [](#arguments-2)

    - Name - The name of the interface.
- ##### make:scope

    [](#makescope)

    Creates a new trait, by default this will be stored in `App/Scopes`. A scope will always automatically be suffixed with `Scope`.

    ##### Arguments

    [](#arguments-3)

    - Name - The name of the scope.
- ##### make:trait

    [](#maketrait)

    Creates a new trait, by default this will be stored in `App/Traits`. A trait will always automatically be suffixed with `Trait` according to the PSR naming conventions.

    ##### Arguments

    [](#arguments-4)

    - Name - The name of the trait.

    ##### Options

    [](#options)

    - Boot | b - Makes a boot trait instead of an empty one.
    - Uuid | u - Makes a trait to fill a field with an uuid on creation.
    - Anonymous | a - Makes a trait to anonymous data on soft deletes.
- ##### make:view:composer

    [](#makeviewcomposer)

    Creates a new trait, by default this will be stored in `App/Http/View/Composers`. A view composer will always automatically be suffixed with `Composer`.

    ##### Arguments

    [](#arguments-5)

    - Name - The name of the view composer.

#### Patch

[](#patch)

- ##### patch

    [](#patch-1)

    Patch some basic things you might not like about laravel. Supports the patching of the following things:

    - Language
        - Replaces a language tag with another language tag for all languages.
    - Htaccess
        - Adds security things to the default htaccess. See the config for the options.
    - Cookie
        - Adds a prefix to the cookies.
    - Config
        - Replace config values.

    ##### Arguments

    [](#arguments-6)

    - Sections - An array of sections to patch. The allowed sections are:
        - language
        - htaccess
        - cookie
        - config

#### Publish

[](#publish)

- ##### publish:config

    [](#publishconfig)

    Publishes the config used for the package. This can also be done with:

    ```
      php artisan vendor:publish --provider="Creativeorange\LaravelStubs\LaravelStubsServiceProvider" --tag="config"

    ```

    ##### Options

    [](#options-1)

    - Force | f - Forces the stubs to be overwritten.
- ##### publish:stubs

    [](#publishstubs)

    Publishes all the stubs used for the package.

    ##### Options

    [](#options-2)

    - Force | f - Forces the stubs to be overwritten.

#### Run

[](#run)

- ##### run:factory

    [](#runfactory)

    Prompts for a model and an amount, then runs the corresponding factory.

    ##### Arguments

    [](#arguments-7)

    - Model - The model to run the factory for. If not provided will be asked on the go.
    - Amount - The amount to create with the factory. If not provide will be asked on the go.

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity66

Established project with proven stability

 Bus Factor1

Top contributor holds 79.5% 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 ~43 days

Recently: every ~224 days

Total

24

Last Release

1171d ago

Major Versions

V1.4.0 → V2.0.02020-09-08

V2.0.5 → V3.0.02022-02-09

V3.0.0 → v4.0.02023-02-24

### Community

Maintainers

![](https://www.gravatar.com/avatar/09c2af1aacfc3f405a56c5532985cb3b18f44520f24d9e2345d3a66acfc610ea?d=identicon)[creativeorange](/maintainers/creativeorange)

---

Top Contributors

[![EsdertCO](https://avatars.githubusercontent.com/u/64210927?v=4)](https://github.com/EsdertCO "EsdertCO (35 commits)")[![Edsardio](https://avatars.githubusercontent.com/u/10669035?v=4)](https://github.com/Edsardio "Edsardio (9 commits)")

### Embed Badge

![Health badge](/badges/creativeorange-laravel-stubs/health.svg)

```
[![Health](https://phpackages.com/badges/creativeorange-laravel-stubs/health.svg)](https://phpackages.com/packages/creativeorange-laravel-stubs)
```

###  Alternatives

[barryvdh/laravel-ide-helper

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

14.9k123.0M686](/packages/barryvdh-laravel-ide-helper)[orchestra/canvas

Code Generators for Laravel Applications and Packages

21017.2M157](/packages/orchestra-canvas)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)[tehwave/laravel-achievements

Simple, elegant Achievements the Laravel way

7012.8k](/packages/tehwave-laravel-achievements)[interaction-design-foundation/laravel-geoip

Support for multiple Geographical Location services.

17221.0k3](/packages/interaction-design-foundation-laravel-geoip)

PHPackages © 2026

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