PHPackages                             nordcoders/laravel-service-maker - 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. nordcoders/laravel-service-maker

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

nordcoders/laravel-service-maker
================================

Generate services and contracts in Laravel with the artisan command

v1.0.1(3y ago)261.4k6[3 PRs](https://github.com/ludoguenet/laravel-service-maker/pulls)MITPHPPHP ^8.1

Since Jul 24Pushed 2y ago2 watchersCompare

[ Source](https://github.com/ludoguenet/laravel-service-maker)[ Packagist](https://packagist.org/packages/nordcoders/laravel-service-maker)[ Docs](https://github.com/nordcoders/laravel-service-maker)[ RSS](/packages/nordcoders-laravel-service-maker/feed)WikiDiscussions main Synced 1mo ago

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

[![Laravel Service Maker](./laravel-service-maker.png)](./laravel-service-maker.png)

 [ ![Total Downloads](https://camo.githubusercontent.com/cd25f352396a77fb268953d2c403f4dc6f5bbfd3f8b3d9a957a3e89cad82916e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e6f7264636f646572732f6c61726176656c2d736572766963652d6d616b6572) ](https://packagist.org/packages/nordcoders/laravel-service-maker) [ ![Latest Stable Version](https://camo.githubusercontent.com/1b30f4605cbb43abc18c7d4ff6aaf753d91f129d7044d9df660955643daa0c8d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e6f7264636f646572732f6c61726176656c2d736572766963652d6d616b6572) ](https://packagist.org/packages/nordcoders/laravel-service-maker) [ ![License](https://camo.githubusercontent.com/2ee5bfa7539cc835fd3e17e4136a8356c76f3cba9c899dc6aadf065e0fd842d0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f6e6f7264636f646572732f6c61726176656c2d736572766963652d6d616b6572) ](https://packagist.org/packages/nordcoders/laravel-service-maker)

What does it do?
----------------

[](#what-does-it-do)

This package adds a new `php artisan make:service {name} {--N|noContract}` command. It will create a service file and its contract (interface) for saving time while working with Laravel Framework and benefit from the **Service Pattern**.

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

[](#installation)

You can install the package via composer:

```
composer require nordcoders/laravel-service-maker --dev
```

How does it work?
-----------------

[](#how-does-it-work)

After installation, the command `php artisan make:service {name} {--N|noContract}` will be available.

### Create services files

[](#create-services-files)

For example, the command `php artisan make:service createUser` will generate a service file called `CreateUserService.php` located in `app/Services/CreateUser`.

It will also generate an interface (contract) called `CreateUserContract.php` located in `app/Services/Contracts`.

### Create services for models

[](#create-services-for-models)

Adding a `--service` or `-S` option is now available when creating a model.

For example, the command `php artisan make:model Book --service` or `php artisan make:model Book -S` will generate a model with service too.

The command `php artisan make:model Book --all` or `php artisan make:model Book -a` will now generate a model, migration, factory, seeder, policy, controller, form requests and service.

### Contracts

[](#contracts)

Adding a `--noContract` or `-N` option will prevent the commands from implementing any contract and will not create any contract file.

If you never need any contracts. Publish the config file and then turn the **with\_interface** value to false in the config file.

Configuration file
------------------

[](#configuration-file)

You can publish the config file with:

```
php artisan vendor:publish --tag="service-maker-config"
```

This is the content of the published config file:

```
return [
    'with_interface' => true,
];
```

Credits
-------

[](#credits)

- [Ludovic Guénet](https://github.com/ludoguenet)
- [All Contributors](../../contributors)

License
-------

[](#license)

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

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 69.6% 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 ~1 days

Total

2

Last Release

1387d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/3f1ac1a4b7fdf5d9283574fc60d79c986b1f2baf67b248a65f988a681dd470a6?d=identicon)[ludoguenet](/maintainers/ludoguenet)

---

Top Contributors

[![ludoguenet](https://avatars.githubusercontent.com/u/36139526?v=4)](https://github.com/ludoguenet "ludoguenet (32 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (8 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (6 commits)")

---

Tags

laravelpackageservicelaravellaravel-service-makernordcoders

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/nordcoders-laravel-service-maker/health.svg)

```
[![Health](https://phpackages.com/badges/nordcoders-laravel-service-maker/health.svg)](https://phpackages.com/packages/nordcoders-laravel-service-maker)
```

###  Alternatives

[spatie/laravel-data

Create unified resources and data transfer objects

1.7k28.9M627](/packages/spatie-laravel-data)[spatie/laravel-livewire-wizard

Build wizards using Livewire

4061.0M4](/packages/spatie-laravel-livewire-wizard)[hirethunk/verbs

An event sourcing package that feels nice.

513162.9k6](/packages/hirethunk-verbs)[worksome/exchange

Check Exchange Rates for any currency in Laravel.

123544.7k](/packages/worksome-exchange)[ralphjsmit/livewire-urls

Get the previous and current url in Livewire.

82270.3k4](/packages/ralphjsmit-livewire-urls)[hydrat/filament-table-layout-toggle

Filament plugin adding a toggle button to tables, allowing user to switch between Grid and Table layouts.

6292.3k1](/packages/hydrat-filament-table-layout-toggle)

PHPackages © 2026

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