PHPackages                             nowodev/makeservice - 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. nowodev/makeservice

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

nowodev/makeservice
===================

A laravel package for scaffolding service classes.

2.0.0(1mo ago)0329↓37.5%MITPHPPHP &gt;=8.2

Since Feb 2Pushed 3mo agoCompare

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

READMEChangelog (3)Dependencies (12)Versions (12)Used By (0)

MAKE SERVICE
============

[](#make-service)

[![Latest Version on Packagist](https://camo.githubusercontent.com/2fd72d6682368119178f2a49be02995307958f651539e38d8e32476bcbca8c37/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e6f776f6465762f6d616b65736572766963653f7374796c653d666c61742d737175617265)](https://packagist.org/packages/nowodev/makeservice)[![Quality Score](https://camo.githubusercontent.com/7c74b88c61e811ebae5e8e97f9de38c091a0ac26d80c44f1dc5e93db17ac03a6/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f7175616c6974792f672f6e6f776f6465762f6d616b65736572766963652f6d61696e3f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/nowodev/makeservice/)[![Code Quality](https://camo.githubusercontent.com/f0b1f1684399ac957400fb8725b3480f5a9eace350ccce1a539b43e886e7445e/68747470733a2f2f696d672e736869656c64732e696f2f636f6465666163746f722f67726164652f6769746875622f6e6f776f6465762f6d616b65736572766963653f7374796c653d666c61742d737175617265)](https://www.codefactor.io/repository/github/nowodev/makeservice)[![Known Vulnerabilities](https://camo.githubusercontent.com/cf84f0f6117f6fd5ea41ce81b9bb726e4718bec468bb83fc824400661c69de85/68747470733a2f2f736e796b2e696f2f746573742f6769746875622f6e6f776f6465762f6d616b65736572766963652f62616467652e7376673f7374796c653d666c61742d737175617265)](https://security.snyk.io/package/composer/nowodev%2Fmakeservice)[![Github Workflow Status](https://camo.githubusercontent.com/e168e76f65f27dcce2a16cac05ad6e682fedd313e249ba39ee71b5ed505142b3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6e6f776f6465762f6d616b65736572766963652f6d616b65736572766963652e796d6c3f6272616e63683d6d61696e267374796c653d666c61742d737175617265)](https://github.com/nowodev/makeservice/actions/workflows/makeservice.yml)[![Total Downloads](https://camo.githubusercontent.com/25fd09f24e0ef894d01a52fe400246bd4c2230a1e802505c1ef286a6a194bd5d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e6f776f6465762f6d616b65736572766963653f7374796c653d666c61742d737175617265)](https://packagist.org/packages/nowodev/makeservice)[![Licence](https://camo.githubusercontent.com/1738900a27d9f76b513297ca9ad8a51dcf0b6ade3b257747d9c24d5d8eed8aee/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6e6f776f6465762f6d616b65736572766963653f7374796c653d666c61742d737175617265)](https://github.com/nowodev/makeservice/blob/main/LICENSE.md)

A laravel package for scaffolding Service, Traits, Enums, Facades, Actions, Repository and Interface classes.

REQUIREMENTS
------------

[](#requirements)

- PHP 8+
- Laravel 8+

STEPS TO INSTALL
----------------

[](#steps-to-install)

```
composer require nowodev/makeservice
```

SERVICE CLASS
-------------

[](#service-class)

To generate a new service class.

```
php artisan make:service SampleService

php artisan make:service SampleService  -f //This will overwrite an existing service class.
```

To generate a new service class for a particular request class.

```
php artisan make:request SampleRequest

php artisan make:service SampleService --request=SampleRequest
```

To generate a service class and a form request class together

```
php artisan make:service SampleService --request=SampleRequest -e
```

TRAIT CLASS
-----------

[](#trait-class)

To generate a new trait class.

```
php artisan make:traitclass SampleTrait

php artisan make:traitclass SampleTrait  -f //This will overwrite an existing trait class.
```

ENUM CLASS
----------

[](#enum-class)

To generate a new enum class.

```
php artisan make:enumclass Sample

php artisan make:enumclass Sample  -f //This will overwrite an existing enum class.
```

ACTION CLASS
------------

[](#action-class)

To generate a new action class.

```
php artisan make:action Sample

php artisan make:action Sample  -f //This will overwrite an existing action class.
```

CONTRACT CLASS
--------------

[](#contract-class)

To generate a new contract/interface class.

```
php artisan make:interfaceclass SampleInterface

php artisan make:interfaceclass SampleInterface  -f //This will overwrite an existing interface  class.
```

REPOSITORY CLASS
----------------

[](#repository-class)

To generate a new repository class for a particular contract/interface class.

```
php artisan make:interfaceclass UserRepositoryInterface --model=User

php artisan make:repository UserRepository --model=User --interface=UserRepositoryInterface

php artisan make:repository UserRepository --model=User --interface=UserRepositoryInterface  -f //This will overwrite an existing repository class.
```

To generate extra fetch by user id methods.

```
php artisan make:interfaceclass UserRepositoryInterface --model=User --user

php artisan make:repository UserRepository --model=User --interface=UserRepositoryInterface --user

php artisan make:repository UserRepository --model=User --interface=UserRepositoryInterface --user  -f //This will overwrite an existing repository class.
```

To generate a repository class and a contract/interface class together

```
php artisan make:repository UserRepository --model=User -c

php artisan make:repository UserRepository --model=User --user -c
```

FACADE CLASS
------------

[](#facade-class)

To generate a new facade class.

```
php artisan make:facade Sample

php artisan make:facade Sample  -f //This will overwrite an existing facade class.
```

To generate a facade class for a repository class

```
php artisan make:facade User --contract=UserRepositoryInterface
```

### Bind the contract and the repository class

[](#bind-the-contract-and-the-repository-class)

The last thing we need to do is bind `UserRepository` to `UserRepositoryInterface` in Laravel's Service Container. We will do this via a Service Provider. Create one using the following command:

```
php artisan make:provider RepositoryServiceProvider
```

Open `app/Providers/RepositoryServiceProvider.php` and update the register function to match the following:

```
public function register()
{
    $this->app->bind(UserRepositoryInterface::class, UserRepository::class);
}
```

Finally, add the new Service Provider to the providers array in `config/app.php`.

```
'providers' => [
    // ...other declared providers
    App\Providers\RepositoryServiceProvider::class,
];
```

### Bind the facade and the action class

[](#bind-the-facade-and-the-action-class)

If we have a `User` facade class and a `UserService` action class, we would need to add it to Laravel's Service Container. Facades for respository classes will work without any extra binding since they have already been added to the container within the `RepositoryServiceProvider` class, but we would always need to register every facade class we created.

Create the provider:

```
php artisan make:provider FacadeServiceProvider
```

Bind the action class:

```
public function register()
{
    $this->app->bind('user', UserService::class);
}
```

Register the providers:

```
'providers' => [
    // ...other declared providers
    App\Providers\FacadeServiceProvider::class,
    App\Providers\RepositoryServiceProvider::class,
];
```

Finally, add the facade to the aliases array in `config/app.php`.

```
    'aliases' => Facade::defaultAliases()->merge([
    // ...other declared facades
        'User' => App\Facades\User::class,
    ])->toArray(),
```

LICENSE
-------

[](#license)

The MS package is an open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).

###  Health Score

43

—

FairBetter than 91% of packages

Maintenance84

Actively maintained with recent releases

Popularity16

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 64.3% 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 ~5 days

Recently: every ~12 days

Total

11

Last Release

53d ago

Major Versions

1.0.9 → 2.0.02026-03-27

PHP version history (2 changes)1.0.0PHP &gt;=8.0

1.0.4PHP &gt;=8.2

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/43044740?v=4)[Toluwani Okunowo](/maintainers/nowodev)[@nowodev](https://github.com/nowodev)

---

Top Contributors

[![monitecture](https://avatars.githubusercontent.com/u/100952206?v=4)](https://github.com/monitecture "monitecture (45 commits)")[![nowodev](https://avatars.githubusercontent.com/u/43044740?v=4)](https://github.com/nowodev "nowodev (20 commits)")[![ikechukwukalu](https://avatars.githubusercontent.com/u/60310041?v=4)](https://github.com/ikechukwukalu "ikechukwukalu (5 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/nowodev-makeservice/health.svg)

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

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M687](/packages/barryvdh-laravel-ide-helper)[livewire/flux

The official UI component library for Livewire.

9475.0M86](/packages/livewire-flux)[wnx/laravel-stats

Get insights about your Laravel Project

1.8k1.8M7](/packages/wnx-laravel-stats)[orchestra/canvas

Code Generators for Laravel Applications and Packages

20917.2M158](/packages/orchestra-canvas)[glhd/conveyor-belt

14797.0k](/packages/glhd-conveyor-belt)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

245.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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