PHPackages                             machus/laravel-artisan - 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. machus/laravel-artisan

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

machus/laravel-artisan
======================

Reusable artisan commands for Laravel projects

01PHP

Since Nov 17Pushed 6mo agoCompare

[ Source](https://github.com/jpu4/laravel-artisan)[ Packagist](https://packagist.org/packages/machus/laravel-artisan)[ RSS](/packages/machus-laravel-artisan/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Laravel Artisan Commands
========================

[](#laravel-artisan-commands)

A Laravel package providing reusable artisan commands for common development tasks across multiple projects.

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

[](#installation)

You can install the package via composer:

```
composer require machus/laravel-artisan:@dev
composer dump-autoload
php artisan clear-compiled
php artisan optimize:clear
```

The service provider will be automatically registered via Laravel's package discovery.

Available Commands
------------------

[](#available-commands)

### `clear:all`

[](#clearall)

Runs all Laravel clear commands in one go:

```
php artisan clear:all
```

This command will clear:

- Application cache (`cache:clear`)
- Configuration cache (`config:clear`)
- Route cache (`route:clear`)
- Compiled views (`view:clear`)
- Compiled class file (`clear-compiled`)

### `reset`

[](#reset)

Completely resets your application by clearing all caches and running fresh migrations with seeding:

```
php artisan reset
```

This command will:

1. Run `clear:all` to clear all caches
2. Run `migrate:fresh --seed --force` to reset the database

**Warning:** This command will drop all tables and re-run migrations. Use with caution in production environments.

### User Management Commands

[](#user-management-commands)

#### `user:create`

[](#usercreate)

Create a new user interactively or with options:

```
# Interactive mode
php artisan user:create

# With options
php artisan user:create --name="John Doe" --email="john@example.com" --password="secret123"
```

#### `user:list`

[](#userlist)

List all users with optional search and limit:

```
# List users (default: 50)
php artisan user:list

# Search by name or email
php artisan user:list --search="john"

# Limit results
php artisan user:list --limit=10
```

#### `user:delete`

[](#userdelete)

Delete a user by ID or email:

```
# Delete by ID
php artisan user:delete 1

# Delete by email
php artisan user:delete john@example.com

# Skip confirmation
php artisan user:delete 1 --force
```

**Note:** All user commands require Laravel's authentication framework to be installed. They will show an error if the User model is not found.

Usage
-----

[](#usage)

After installation, the commands are immediately available in your Laravel application:

```
# Clear all caches
php artisan clear:all

# Reset application (clear caches + fresh migrations with seeding)
php artisan reset

# User management
php artisan user:create
php artisan user:list
php artisan user:delete 1
```

Requirements
------------

[](#requirements)

- PHP 8.1 or higher
- Laravel 10.x or 11.x

Credits
-------

[](#credits)

Built using [spatie/laravel-package-tools](https://github.com/spatie/laravel-package-tools)

License
-------

[](#license)

The MIT License (MIT).

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance47

Moderate activity, may be stable

Popularity1

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity13

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/f1be066d330ada10561ad5e9c52a2fbadb2e2d55b350fc101157c6331d4e15a5?d=identicon)[machus](/maintainers/machus)

---

Top Contributors

[![jpu4](https://avatars.githubusercontent.com/u/33546073?v=4)](https://github.com/jpu4 "jpu4 (3 commits)")

### Embed Badge

![Health badge](/badges/machus-laravel-artisan/health.svg)

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

###  Alternatives

[wp-cli/wp-cli

WP-CLI framework

5.0k17.2M320](/packages/wp-cli-wp-cli)[consolidation/annotated-command

Initialize Symfony Console commands from annotated command class methods.

22569.8M19](/packages/consolidation-annotated-command)[chi-teck/drupal-code-generator

Drupal code generator

26947.8M5](/packages/chi-teck-drupal-code-generator)[seld/cli-prompt

Allows you to prompt for user input on the command line, and optionally hide the characters they type

24725.8M17](/packages/seld-cli-prompt)[illuminate/console

The Illuminate Console package.

12944.1M5.1k](/packages/illuminate-console)[php-tui/php-tui

Comprehensive TUI library heavily influenced by Ratatui

589747.0k6](/packages/php-tui-php-tui)

PHPackages © 2026

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