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

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

conquest/command
================

Artisan commands to rapidly develop your apps.

v0.1.0(1y ago)06MITPHPPHP ^8.2

Since Aug 10Pushed 1y ago1 watchersCompare

[ Source](https://github.com/jdw5/conquest-command)[ Packagist](https://packagist.org/packages/conquest/command)[ Docs](https://github.com/jdw5/conquest-command)[ GitHub Sponsors](https://github.com/Conquest)[ RSS](/packages/conquest-command/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (13)Versions (2)Used By (0)

Artisan commands to rapidly develop your apps.
==============================================

[](#artisan-commands-to-rapidly-develop-your-apps)

[![Latest Version on Packagist](https://camo.githubusercontent.com/5e7af00c41c7ffbfee8d9f08c54004137ebe8488674ee97a7d9e0ea3e38be4a7/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f636f6e71756573742f636f6d6d616e642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/conquest/command)[![GitHub Tests Action Status](https://camo.githubusercontent.com/16991fa1d0cf1807c2c11b862ab10c93de367048a9e107a397a93d71109704ee/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6a6477352f636f6e71756573742d636f6d6d616e642f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/jdw5/conquest-command/actions?query=workflow%3Arun-tests+branch%3Amain)[![GitHub Code Style Action Status](https://camo.githubusercontent.com/f78459ea422f666a3e4af37285b964d86430998e88e6d5aa81457551a87b708a/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6a6477352f636f6e71756573742d636f6d6d616e642f6669782d7068702d636f64652d7374796c652d6973737565732e796d6c3f6272616e63683d6d61696e266c6162656c3d636f64652532307374796c65267374796c653d666c61742d737175617265)](https://github.com/jdw5/conquest-command/actions?query=workflow%3A%22Fix+PHP+code+style+issues%22+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/bf41cbca1c992e5cf2419c0879da821c9de208d66c0922121b03efc77e03e7ea/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f636f6e71756573742f636f6d6d616e642e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/conquest/command)

Conquest Command is a package to rapidly generate boilerplate code for your monolithic Laravel application using Artisan.

Users will need to publish the applications `stubs` to override them, as they are built by default for the private `Conquest Legion` boilerplate kit.

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

[](#installation)

You can install the package via composer:

```
composer require conquest/command
```

Customise the paths and extensions through by publishing config file with:

```
php artisan vendor:publish --provider="Conquest\Command\ConquestCommandServiceProvider" --tag="config"
```

This is the contents of the published config file:

```
return [
    'extension' => 'vue',
    'paths' => [
        'page' => 'js/Pages',
        'modal' => 'js/Modals',
        'component' => 'js/Components',
    ],
    'base_route' => 'dashboard',
];
```

You should also publish the stubs to customise them:

```
php artisan vendor:publish --provider="Conquest\Command\ConquestCommandServiceProvider" --tag="stubs"
```

Usage
-----

[](#usage)

Use the provided commands to generate the boilerplate files via CLI. The available commands are:

```
php artisan make:page
php artisan make:modal
php artisan make:conquest
php artisan make:js-component
php artisan user:make
php artisan add:route
```

### User Creation

[](#user-creation)

It is **strongly** recommended you extend the `UserCreateCommand` to fit your user creation flow. This command is only designed for the Laravel starter kits, using the `UserFactory` that is provided.

Some methods are provided, but not implemented for this command. By extending, you can opt into them without needing to write the option methods yourself.

### Conquest

[](#conquest)

Conquest is a compound command, using highly opionated conventions to generate out controllers, requests and Javascript pages (by default), with the ability of generating complete file structures dependent on the options provided to it. All arguments to the command must be camel-cased and in the form `ModelMethod`. The method must be the final part of the argument.

By default, passing `ModelMethod` will create a `Request` and single-action `Controller`, with a `Page` or `Modal` being generated if the method segment of the name matches the required case.

If you do include options, your name argument must contain one of the 8 keywords, or no keyword at all. Having other names can result in undesirable naming conventions to be generated.

The naming convention uses 8 keywords to generate out different files.

- `Index`: Generates a page
- `Show`: Generates a page by default, --modal flag will generate a modal
- `Create`: Generates a form page by default, --modal flag will generate a form modal
- `Store`: No page
- `Edit`: Generates a form page by default, --modal flag will generate a form modal
- `Update`: No page
- `Delete`: Generates a modal by default, --page flag will generate a page
- `Destroy`: No page

It will additionally remove pluralisation from the model name, and use the singular form for the file names.

The complete list of options to provide is:

- `--page`: Force a page to be generated
- `--modal`: Force a modal to be generated
- `--model`: Generates a model, and cretaes the desired endpoint
- `--seeder`: Generates a seeder for the given `--model`, if not supplied, nothing will happen
- `--factory`: Generates a factory for the given `--model`, if not supplied, nothing will happen
- `--migration`: Generates a controller for the given `--model`, if not supplied, nothing will happen
- `--policy`: Generates a policy for the given `Model`
- `--resource`: Generates a resource for the given `Model`
- `--crud`: Will create all 8 actions for a given `Model` name
- `--force`: Overwrites existing files. Applies to all files to be generated
- `--route`: Add the endpoint(s) to the end of your `web.php`, or the `route/` file specified as the argument. If `crud` is specified, this will also group the arguments under a header
- `--all`: Executes all available options

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)

- [Joshua Wallace](https://github.com/jdw5)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity42

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 97.1% 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

Unknown

Total

1

Last Release

645d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/15a6681aedaa970f3cdc6061a522528ee8d5b9de8003ac0ba0a32bd445b28442?d=identicon)[jdw5](/maintainers/jdw5)

---

Top Contributors

[![jdw5](https://avatars.githubusercontent.com/u/87954417?v=4)](https://github.com/jdw5 "jdw5 (67 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (1 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (1 commits)")

---

Tags

clilaravelcommandconquest

###  Code Quality

TestsPest

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/conquest-command/health.svg)

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

###  Alternatives

[nunomaduro/laravel-console-menu

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

815412.0k48](/packages/nunomaduro-laravel-console-menu)[laravel-zero/framework

The Laravel Zero Framework.

3371.4M369](/packages/laravel-zero-framework)[nunomaduro/laravel-console-dusk

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

16255.4k7](/packages/nunomaduro-laravel-console-dusk)[mariuzzo/laravel-translator

Laravel command that interactively helps you translate missing keys.

1939.9k](/packages/mariuzzo-laravel-translator)[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)
