PHPackages                             prezire/facade-generator - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. prezire/facade-generator

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

prezire/facade-generator
========================

An Artisan command that generates a Service Provider and Facade based on your existing custom Service class file.

030PHP

Since Oct 26Pushed 6y ago1 watchersCompare

[ Source](https://github.com/prezire/facade-generator)[ Packagist](https://packagist.org/packages/prezire/facade-generator)[ RSS](/packages/prezire-facade-generator/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

Facade Generator for Laravel 5.6
================================

[](#facade-generator-for-laravel-56)

An Artisan command that generates a Service Provider and Facade based on your existing custom Service class file.

---

### Installation

[](#installation)

```
composer require prezire/facade-generator
```

### Usage

[](#usage)

```
php artisan make:facade [FacadeAliasName] [TargetServiceFile]
```

### Example: Create a FooBar facade based on Foo service class file.

[](#example-create-a-foobar-facade-based-on-foo-service-class-file)

```
php artisan make:facade FooBar \\App\\Services\\Foo
```

You must register the generated provider and alias for the facade in `config/app.php' file.

```
'providers' => [
  App\Providers\Facades\FooBarServiceProvider::class,
],
'aliases' => [
  'FooBar' => App\Facades\FooBar::class,
],
```

### Using the Facade.

[](#using-the-facade)

```
Route::get('/', function () {
  return \FooBar::doSomething();
});
```

###  Health Score

19

—

LowBetter than 10% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity35

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/75daf5b5fee5b56be4cc465a14d004a9a933983c1e450c271833fc32740b43ab?d=identicon)[prezire](/maintainers/prezire)

---

Top Contributors

[![prezire](https://avatars.githubusercontent.com/u/2718922?v=4)](https://github.com/prezire "prezire (11 commits)")

### Embed Badge

![Health badge](/badges/prezire-facade-generator/health.svg)

```
[![Health](https://phpackages.com/badges/prezire-facade-generator/health.svg)](https://phpackages.com/packages/prezire-facade-generator)
```

PHPackages © 2026

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