PHPackages                             yangyiyi/extra-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. yangyiyi/extra-command

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

yangyiyi/extra-command
======================

Extra command to generate Services and Facades for Laravel project

v1.0.4(4y ago)076MITPHPPHP ^7.3|^8.0

Since Jul 1Pushed 4y ago1 watchersCompare

[ Source](https://github.com/yangyiyi/extra-command)[ Packagist](https://packagist.org/packages/yangyiyi/extra-command)[ RSS](/packages/yangyiyi-extra-command/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)DependenciesVersions (8)Used By (0)

Extra Command to generate Service and Facade for Laravel.
=========================================================

[](#extra-command-to-generate-service-and-facade-for-laravel)

Table of Contents
-----------------

[](#table-of-contents)

- [Requirement](#requirement)
- [Installation](#installation)
- [How to use](#how-to-use)
    - [Create Service Only](#create-service-only)
    - [Create Facade Only](#create-facade-only)
    - [Create Service / Facade with Options](#create-service-facade-with-options)
        - [Create by using make:service / make:facade command](#create-by-using-makeservice--makefacade-command)
    - [Options list](#options-list)
- [Changelog](#changelog)
- [License](#license)

Requirement
-----------

[](#requirement)

- PHP 7.3 and above.
- Laravel 7 and above.

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

[](#installation)

You can install this project using composer, the service provider will be automatically loaded by Laravel itself:

```
composer require yangyiyi/extra-command

```

Once the installation is completed. Run `php artisan` command in your terminal console, and you'll see the new commands `make:service` and `make:facade` under the `make:*` namespace section.

How to use
----------

[](#how-to-use)

### Create Service Only

[](#create-service-only)

You may run command below to create service.

```
php artisan make:service Account

```

As example above, it will create the service call `AccountService` under `app\Support\Services`.

### Create Facade Only

[](#create-facade-only)

You may run command below to create facade.

```
php artisan make:facade Account

```

As example above, it will create the facade call `AccountFacade` under `app\Support\Facades`.

### Create Service / Facade with Options

[](#create-service--facade-with-options)

You may create service, facade, model and migration at the same time by using one of the command below.

#### Create by using make:service / make:facade command

[](#create-by-using-makeservice--makefacade-command)

```
php artisan make:service Account -a

```

or

```
php artisan make:facade Account -a

```

You may found 4 file as show below.

1. Service - `AccountService.php` under `app\Support\Services`.
2. Facade - `AccountFacade.php` under `app\Support\Facades`.
3. Model - `Account.php` under `app\Models` (follow default laravel structure).
4. Migration - `****_create_accounts_table.php` under `database\migration` (follow default laravel structure).

### Options list

[](#options-list)

```
-a = Generate a migration, facade and model.
-f = Create a facade for the model.
-m = Create a new for the model.
-g = Create a new migration file for the model.

```

Changelog
---------

[](#changelog)

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

License
-------

[](#license)

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

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity61

Established project with proven stability

 Bus Factor1

Top contributor holds 95.7% 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 ~3 days

Total

7

Last Release

1762d ago

Major Versions

v0.0.2 → v1.0.02021-07-06

### Community

Maintainers

![](https://www.gravatar.com/avatar/d4a09d5b286ddd23de1e1cca4999e09b55618566ba1fc8c13f8cbb24551df36c?d=identicon)[yangyiyi](/maintainers/yangyiyi)

---

Top Contributors

[![yangyiyi](https://avatars.githubusercontent.com/u/10738551?v=4)](https://github.com/yangyiyi "yangyiyi (22 commits)")[![transgen](https://avatars.githubusercontent.com/u/12225260?v=4)](https://github.com/transgen "transgen (1 commits)")

### Embed Badge

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

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

###  Alternatives

[wp-cli/wp-cli

WP-CLI framework

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

Initialize Symfony Console commands from annotated command class methods.

22569.8M19](/packages/consolidation-annotated-command)[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)[codedungeon/php-cli-colors

Liven up you PHP Console Apps with standard colors

10210.1M26](/packages/codedungeon-php-cli-colors)

PHPackages © 2026

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