PHPackages                             sirmathays/convenient-laravel-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. sirmathays/convenient-laravel-commands

Abandoned → [lyhty/commands](/?search=lyhty%2Fcommands)ArchivedLibrary[CLI &amp; Console](/categories/cli)

sirmathays/convenient-laravel-commands
======================================

Adds some very convenient commands to your Laravel project

v2.0.2(5y ago)02.9kMITPHPPHP &gt;=7.1.3

Since Jan 30Pushed 3y ago1 watchersCompare

[ Source](https://github.com/sirmathays/convenient-laravel-commands)[ Packagist](https://packagist.org/packages/sirmathays/convenient-laravel-commands)[ RSS](/packages/sirmathays-convenient-laravel-commands/feed)WikiDiscussions master Synced 3w ago

READMEChangelog (2)Dependencies (2)Versions (20)Used By (0)

 [![](https://camo.githubusercontent.com/289f6109785cee6fe0b355b39061812658bf2c6171664395d1890aeb2321f7c7/68747470733a2f2f6d617474692e73756f72616e69656d692e636f6d2f73746f726167652f666f7275722e706e67)](https://camo.githubusercontent.com/289f6109785cee6fe0b355b39061812658bf2c6171664395d1890aeb2321f7c7/68747470733a2f2f6d617474692e73756f72616e69656d692e636f6d2f73746f726167652f666f7275722e706e67)

 [ ![Total Downloads](https://camo.githubusercontent.com/0814a5aa2ea0923d899bc25440f79b512eb0bf1eca0f53458777b598572c8469/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7369726d6174686179732f636f6e76656e69656e742d6c61726176656c2d636f6d6d616e6473) ](https://packagist.org/packages/sirmathays/convenient-laravel-commands) [ ![Latest Stable Version](https://camo.githubusercontent.com/ffbf8945f62951458ce4c84f00ad8536fb08175122eb9bfe962e405884cb48a6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7369726d6174686179732f636f6e76656e69656e742d6c61726176656c2d636f6d6d616e6473) ](https://packagist.org/packages/sirmathays/convenient-laravel-commands) [ ![License](https://camo.githubusercontent.com/75d5729e99d5def09253179635029ca1a050d23ae94c91f7035abcf81532892e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f7369726d6174686179732f636f6e76656e69656e742d6c61726176656c2d636f6d6d616e6473) ](https://packagist.org/packages/sirmathays/convenient-laravel-commands)

This package provides some additional, convenient commands for you to use with your Laravel project.

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

[](#installation)

Install the package with Composer:

```
composer require sirmathays/convenient-laravel-commands

```

Commands
--------

[](#commands)

Here's a brief documentation on the make commands the package provides to be used with Artisan.

### Commands for creating PHP OOP types

[](#commands-for-creating-php-oop-types)

```
artisan make:class --type[=TYPE]

```

> Valid type options: final, abstract.

```
artisan make:interface
artisan make:trait

```

### Commands for Model development

[](#commands-for-model-development)

#### Relationship trait

[](#relationship-trait)

```
artisan make:relationship --explicit --relation[=RELATION] --model[=MODEL]

```

Creates a relationship trait to be used with models. The command tries to guess both the relation and the model class from the `name` argument. Both can be overwritten by providing options for each. By adding the `explicit` option, parsing will not be used and options for both `model` and `relation` must be provided.

#### Scope class

[](#scope-class)

```
artisan make:scope --extend

```

Creates a scope class to be used with models. Defaults to the namespace the project's models exist in (e.g. App\\Models\\Scopes). When using `extend` option, the class will also include `extend` function, used to apply Builder macros to the model the scope is attached to as a global scope.

### Commands for creating classes for Spatie's QueryBuilder *(if part of the project)*

[](#commands-for-creating-classes-for-spaties-querybuilder-if-part-of-the-project)

```
artisan make:query-filter
artisan make:query-sort

```

### Other Commands

[](#other-commands)

#### Concern trait

[](#concern-trait)

```
artisan make:concern

```

Creates a concern trait. It's practically a trait that just follows the Laravel naming conventions. Defaults to the root namespace of the project (e.g. App\\Concerns).

#### Contract trait

[](#contract-trait)

```
artisan make:contract

```

Creates a contract interface. It's practically an interface that just follows the Laravel naming conventions. Defaults to the root namespace of the project (e.g. App\\Contracts).

#### Generator Command class

[](#generator-command-class)

```
artisan make:command-gen --explicit --type[=TYPE] --stub[=STUB]

```

Creates a generator command and a stub. Command parses the type name from the given name argument. E.g. `artisan make:command-gen ConcernMakeCommand` would set the command name to be `make:concern` and the stub file to be named `concern.stub`. This behavior can be overwritten with using the `explicit` option and/or providing `type` and `stub` options respectively.

License
-------

[](#license)

Convenient Laravel Commands is open-sourced software licensed under the [MIT license](LICENSE.md).

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity16

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 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.

###  Release Activity

Cadence

Every ~29 days

Recently: every ~121 days

Total

19

Last Release

1450d ago

Major Versions

v1.7.0 → 2.0.02021-03-16

### Community

Maintainers

![](https://www.gravatar.com/avatar/2cd5d6f2caaea83278fd1552c5bdc1b30b4164890ba0801a718dc20efa93738c?d=identicon)[TruecapeDev](/maintainers/TruecapeDev)

---

Top Contributors

[![sirmathays](https://avatars.githubusercontent.com/u/37704147?v=4)](https://github.com/sirmathays "sirmathays (13 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/sirmathays-convenient-laravel-commands/health.svg)

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

###  Alternatives

[unopim/unopim

UnoPim Laravel PIM

10.5k2.4k](/packages/unopim-unopim)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135224.7k7](/packages/statamic-rad-pack-runway)[ronasit/laravel-entity-generator

Provided console command for generating entities.

2053.1k](/packages/ronasit-laravel-entity-generator)[api-platform/laravel

API Platform support for Laravel

58171.6k14](/packages/api-platform-laravel)[ecotone/laravel

Ecotone for Laravel — CQRS, Event Sourcing, Sagas, Durable Workflows, and Outbox on top of Laravel Queue, via PHP attributes.

21318.6k3](/packages/ecotone-laravel)[duncanmcclean/statamic-cargo

Comprehensive e-commerce addon for Statamic. Build bespoke e-commerce sites without the complexity.

3417.0k](/packages/duncanmcclean-statamic-cargo)

PHPackages © 2026

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