PHPackages                             spatie/laravel-random-command - 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. spatie/laravel-random-command

ActiveLibrary

spatie/laravel-random-command
=============================

Execute a random Laravel command

1.4.3(3y ago)3976MITPHPPHP ^7.4|^8.0CI passing

Since Mar 31Pushed 8mo ago1 watchersCompare

[ Source](https://github.com/spatie/laravel-random-command)[ Packagist](https://packagist.org/packages/spatie/laravel-random-command)[ Docs](https://github.com/spatie/laravel-random-command)[ Fund](https://spatie.be/open-source/support-us)[ GitHub Sponsors](https://github.com/spatie)[ RSS](/packages/spatie-laravel-random-command/feed)WikiDiscussions main Synced today

READMEChangelog (9)Dependencies (3)Versions (10)Used By (0)

🐟 Execute a random artisan command 🐟
====================================

[](#-execute-a-random-artisan-command-)

[![Latest Version on Packagist](https://camo.githubusercontent.com/85bd18be568963fb5c34dab80d62a759d0c0f9911c4de8653c2add5d99247ec6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7370617469652f6c61726176656c2d72616e646f6d2d636f6d6d616e642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/spatie/:package_name)[![Check & fix styling](https://github.com/spatie/laravel-random-command/workflows/Check%20&%20fix%20styling/badge.svg)](https://github.com/spatie/laravel-random-command/workflows/Check%20&%20fix%20styling/badge.svg)[![Total Downloads](https://camo.githubusercontent.com/8577c33124e96f1bd03b1836509956449ab31c4d01d4ab1320c770141e4f7d5a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7370617469652f6c61726176656c2d72616e646f6d2d636f6d6d616e642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/spatie/:package_name)

Aren't you tired of having to think about which artisan command to execute? This package takes that pain away. It provides a `random` command that will pick a random command and execute it.

```
php artisan random
```

Support us
----------

[](#support-us)

[![](https://camo.githubusercontent.com/cc46e3597a7d40de8d8ba4a18765dc84f799d730f14373d736ece16f6ee3a6b8/68747470733a2f2f6769746875622d6164732e73332e65752d63656e7472616c2d312e616d617a6f6e6177732e636f6d2f6c61726176656c2d72616e646f6d2d636f6d6d616e642e6a70673f743d31)](https://spatie.be/github-ad-click/laravel-random-command)

We invest a lot of resources into creating [best in class open source packages](https://spatie.be/open-source). You can support us by [buying one of our paid products](https://spatie.be/open-source/support-us).

We highly appreciate you sending us a postcard from your hometown, mentioning which of our package(s) you are using. You'll find our address on [our contact page](https://spatie.be/about-us). We publish all received postcards on [our virtual postcard wall](https://spatie.be/open-source/postcards).

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

[](#installation)

You can install the package via composer:

```
composer require spatie/laravel-random-command
```

We don't recommend installing this in your production environment. Or your local environment. In fact it might be best if you don't install this at all.

Usage
-----

[](#usage)

This is how you can unleash the power of the random command. Just execute it and don't look back!

```
php artisan random
```

One more thing. The package will also adds this command to your scheduler and it will run at random times. Enjoy!

Security
--------

[](#security)

If you discover any security related issues, please email  you are on your own.

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Credits
-------

[](#credits)

- [Freek Van der Herten](https://github.com/freekmurze)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

39

—

LowBetter than 85% of packages

Maintenance43

Moderate activity, may be stable

Popularity17

Limited adoption so far

Community17

Small or concentrated contributor base

Maturity67

Established project with proven stability

 Bus Factor1

Top contributor holds 50% 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 ~130 days

Recently: every ~261 days

Total

9

Last Release

1184d ago

PHP version history (2 changes)1.0.0PHP ^7.4

1.4.3PHP ^7.4|^8.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/7535935?v=4)[Spatie](/maintainers/spatie)[@spatie](https://github.com/spatie)

---

Top Contributors

[![freekmurze](https://avatars.githubusercontent.com/u/483853?v=4)](https://github.com/freekmurze "freekmurze (26 commits)")[![rubenvanassche](https://avatars.githubusercontent.com/u/619804?v=4)](https://github.com/rubenvanassche "rubenvanassche (12 commits)")[![AdrianMrn](https://avatars.githubusercontent.com/u/12762044?v=4)](https://github.com/AdrianMrn "AdrianMrn (6 commits)")[![AlexVanderbist](https://avatars.githubusercontent.com/u/6287961?v=4)](https://github.com/AlexVanderbist "AlexVanderbist (4 commits)")[![comes](https://avatars.githubusercontent.com/u/592262?v=4)](https://github.com/comes "comes (1 commits)")[![drobee](https://avatars.githubusercontent.com/u/2998645?v=4)](https://github.com/drobee "drobee (1 commits)")[![jeremynikolic](https://avatars.githubusercontent.com/u/4478969?v=4)](https://github.com/jeremynikolic "jeremynikolic (1 commits)")[![petecoop](https://avatars.githubusercontent.com/u/1655361?v=4)](https://github.com/petecoop "petecoop (1 commits)")

---

Tags

commandlaravelphpspatielaravel-random-command

###  Code Quality

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/spatie-laravel-random-command/health.svg)

```
[![Health](https://phpackages.com/badges/spatie-laravel-random-command/health.svg)](https://phpackages.com/packages/spatie-laravel-random-command)
```

###  Alternatives

[spatie/laravel-backup

A Laravel package to backup your application

6.0k21.8M186](/packages/spatie-laravel-backup)[spatie/laravel-responsecache

Speed up a Laravel application by caching the entire response

2.8k8.2M51](/packages/spatie-laravel-responsecache)[spatie/laravel-activitylog

A very simple activity logger to monitor the users of your website or application

5.8k45.4M309](/packages/spatie-laravel-activitylog)[spatie/laravel-medialibrary

Associate files with Eloquent models

6.1k37.7M471](/packages/spatie-laravel-medialibrary)[spatie/laravel-query-builder

Easily build Eloquent queries from API requests

4.4k26.9M219](/packages/spatie-laravel-query-builder)[spatie/laravel-health

Monitor the health of a Laravel application

85810.0M83](/packages/spatie-laravel-health)

PHPackages © 2026

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